133982cfaf
Composicion: Pipe2, Pipe3, Compose2, Identity, Curry2, Uncurry2, Partial2, Flip, Const. Slices: Find, FindIndex, Any, All, GroupBy, Flatten, FlatMapSlice, Unique, Zip, Reduce, Take, Drop. Stubs que documentan devfactory/core para el registry.
592 B
592 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| identity | function | go | core | 1.0.0 | pure | func Identity[T any](x T) T | Devuelve el valor recibido sin modificarlo. Elemento neutro de la composicion. |
|
false | false | functions/core/identity.go |
Ejemplo
x := Identity(42) // 42
s := Identity("abc") // "abc"
Notas
Funcion pura generica. Implementacion en devfactory/core.