mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
888 B
888 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ElementsMatch | elementsmatch | intersect.go#L247 | core | intersect | https://go.dev/play/p/XWSEM4Ic_t0 |
|
|
150 |
|
Returns true if lists contain the same set of elements (including empty set). If there are duplicate elements, occurrences must match. Order is not checked.
lo.ElementsMatch([]int{1, 1, 2}, []int{2, 1, 1})
// true