988e901066
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
844 B
844 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, 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 | params | output | 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 |
|
función normal de dos argumentos: (A, B) -> C | 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.