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.
582 B
582 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 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| flatten | function | go | core | 1.0.0 | pure | func Flatten[T any](slices [][]T) []T | Aplana un slice de slices en un unico slice. |
|
false | false | functions/core/flatten.go |
Ejemplo
result := Flatten([][]int{{1, 2}, {3, 4}, {5}})
// result = [1, 2, 3, 4, 5]
Notas
Funcion pura generica. Implementacion en devfactory/core.