mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
fa095e4b4f
* fix(doc): fix go playground demo URL * fix(doc): add more go playground demo URL
645 B
645 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Concat | concat | it/seq.go#L358 | it | sequence | https://go.dev/play/p/Fa0u7xT2JOR |
|
|
160 |
|
Returns a sequence of all the elements in iterators. Concat conserves the order of the elements.
list1 := slices.Values([]int{0, 1, 2})
list2 := slices.Values([]int{3, 4, 5})
list3 := slices.Values([]int{6, 7, 8})
result := it.Concat(list1, list2, list3)
// result: []int{0, 1, 2, 3, 4, 5, 6, 7, 8}