Back to Lo

Core Intersect

docs/data/core-intersect.md

1.53.0138 B
Original Source

Returns the intersection between collections.

go
lo.Intersect([]int{0, 3, 5, 7}, []int{3, 5}, []int{0, 1, 2, 0, 3, 0})
// []int{3}