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.
655 B
655 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 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| partial2 | function | go | core | 1.0.0 | pure | func Partial2[A, B, C any](f func(A, B) C, a A) func(B) C | Aplica parcialmente el primer argumento de una funcion de dos parametros. |
|
false | false | functions/core/partial2.go |
Ejemplo
mul := func(a, b int) int { return a * b }
double := Partial2(mul, 2)
result := double(5) // 10
Notas
Funcion pura generica. Implementacion en devfactory/core.