Back to Lo

Core Finduniques

docs/data/core-finduniques.md

1.53.0160 B
Original Source

Returns a slice with elements that appear only once in the collection, preserving original order.

go
lo.FindUniques([]int{1, 2, 2, 1, 2, 3})
// []int{3}