Files
lo/docs/data/core-without.md
T
Samuel Berthe fa095e4b4f fix(doc): fix go playground demo URL (#832)
* fix(doc): fix go playground demo URL

* fix(doc): add more go playground demo URL
2026-03-06 00:09:59 +01:00

29 lines
554 B
Markdown

---
name: Without
slug: without
sourceRef: intersect.go#L181
category: core
subCategory: intersect
playUrl: https://go.dev/play/p/PcAVtYJsEsS
variantHelpers:
- core#intersect#without
similarHelpers:
- core#intersect#withoutby
- core#intersect#intersect
- core#intersect#difference
- core#intersect#union
- core#slice#reject
position: 110
signatures:
- "func Without[T comparable, Slice ~[]T](collection Slice, exclude ...T) Slice"
---
Returns a slice excluding all given values.
```go
lo.Without([]int{0, 2, 10}, 2)
// []int{0, 10}
```