mirror of
https://github.com/samber/lo.git
synced 2026-04-22 15:37:14 +08:00
fa095e4b4f
* fix(doc): fix go playground demo URL * fix(doc): add more go playground demo URL
569 B
569 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FindDuplicates | findduplicates | find.go#L207 | core | find | https://go.dev/play/p/muFgL_XBwoP |
|
|
120 |
|
Returns a slice with the first occurrence of each duplicated element in the collection, preserving order.
lo.FindDuplicates([]int{1, 2, 2, 1, 2, 3})
// []int{1, 2}