---
name: flatten
kind: function
lang: go
domain: core
version: "1.0.0"
purity: pure
signature: "func Flatten[T any](slices [][]T) []T"
description: "Aplana un slice de slices en un unico slice."
tags: [slice, functional, generic, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
  - name: slices
    desc: "slice de slices a aplanar"
output: "slice único con todos los elementos concatenados preservando orden"
tested: false
tests: []
test_file_path: ""
file_path: "functions/core/flatten.go"
---

## Ejemplo

```go
result := Flatten([][]int{{1, 2}, {3, 4}, {5}})
// result = [1, 2, 3, 4, 5]
```

## Notas

Funcion pura generica. Implementacion en devfactory/core.
