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

554 B

name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
name slug sourceRef category subCategory playUrl variantHelpers similarHelpers position signatures
Without without intersect.go#L181 core intersect https://go.dev/play/p/PcAVtYJsEsS
core#intersect#without
core#intersect#withoutby
core#intersect#intersect
core#intersect#difference
core#intersect#union
core#slice#reject
110
func Without[T comparable, Slice ~[]T](collection Slice, exclude ...T) Slice

Returns a slice excluding all given values.

lo.Without([]int{0, 2, 10}, 2)
// []int{0, 10}