Files
fn_registry/docs/templates/function.md
T
egutierrez a65361966d docs: templates de frontmatter YAML para function, pipeline, component y type
Añade plantillas de referencia que documentan el formato exacto
del frontmatter YAML que cada .md debe seguir. Cubren los cuatro
kinds: function, pipeline, component y type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 02:07:02 +01:00

657 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
filter_slice function go core 1.0.0 pure func FilterSlice[T any](xs []T, pred func(T) bool) []T Filtra un slice aplicando un predicado sin mutar el original.
slice
functional
generic
false
false
functions/core/filter_slice.go

Ejemplo

evens := FilterSlice([]int{1, 2, 3, 4}, func(n int) bool { return n%2 == 0 })
// evens = [2, 4]

Notas

Funcion pura generica. No muta el slice original — crea uno nuevo.