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.
648 B
648 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 | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| all_slice | function | go | core | 1.0.0 | pure | func All[T any](slice []T, predicate func(T) bool) bool | Devuelve true si todos los elementos del slice cumplen el predicado. |
|
false | false | functions/core/all_slice.go |
Ejemplo
result := All([]int{2, 4, 6}, func(x int) bool { return x%2 == 0 })
// result = true
Notas
Funcion pura generica. Implementacion en devfactory/core.