10 lines
136 B
Go
10 lines
136 B
Go
package slices
|
|
|
|
func Flat[T any](s ...[]T) []T {
|
|
out := make([]T, 0)
|
|
for _, v := range s {
|
|
out = append(out, v...)
|
|
}
|
|
return out
|
|
}
|