Files
lo/docs/data/core-withoutnth.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

547 B

name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
name slug sourceRef category subCategory playUrl variantHelpers similarHelpers position signatures
WithoutNth withoutnth intersect.go#L223 core intersect https://go.dev/play/p/AIro-_UtL9c
core#intersect#withoutnth
core#intersect#without
core#intersect#withoutby
core#slice#dropbyindex
140
func WithoutNth[T comparable, Slice ~[]T](collection Slice, nths ...int) Slice

Returns a slice excluding the elements at the given indexes.

lo.WithoutNth([]int{-2, -1, 0, 1, 2}, 3)
// []int{-2, -1, 0, 2}