Skip to content

Commit e78d578

Browse files
committed
Update docs for Intersect
1 parent 0df2db6 commit e78d578

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/data/core-intersect.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ similarHelpers:
1414
- core#slice#uniq
1515
position: 80
1616
signatures:
17-
- "func Intersect[T comparable, Slice ~[]T](list1 Slice, list2 Slice) Slice"
17+
- "func Intersect[T comparable, Slice ~[]T](lists ...Slice) Slice"
1818
---
1919

20-
Returns the intersection between two collections.
20+
Returns the intersection between collections.
2121

2222
```go
23-
lo.Intersect([]int{0, 1, 2, 3, 4, 5}, []int{0, 2})
24-
// []int{0, 2}
23+
lo.Intersect([]int{0, 3, 5, 7}, []int{3, 5}, []int{0, 1, 2, 0, 3, 0}))
24+
// []int{3}
2525
```
2626

2727

0 commit comments

Comments
 (0)