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.
703 B
703 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 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| uncurry2 | function | go | core | 1.0.0 | pure | func Uncurry2[A, B, C any](f func(A) func(B) C) func(A, B) C | Transforma una funcion currificada en una funcion normal de dos argumentos. |
|
false | false | functions/core/uncurry2.go |
Ejemplo
curriedAdd := func(a int) func(int) int {
return func(b int) int { return a + b }
}
add := Uncurry2(curriedAdd)
result := add(3, 5) // 8
Notas
Funcion pura generica. Implementacion en devfactory/core.