Files
lo/docs/data/it-dropbyindex.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

493 B

name, slug, sourceRef, category, subCategory, signatures, playUrl, variantHelpers, similarHelpers, position
name slug sourceRef category subCategory signatures playUrl variantHelpers similarHelpers position
DropByIndex dropbyindex it/seq.go#L581 it sequence
func DropByIndex[T any, I ~func(func(T) bool)](collection I, indexes ...int) I
https://go.dev/play/p/vPbrZYgiU4q
it#slice#drop
core#slice#dropbyindex
core#slice#withoutnth
55

Removes elements from a collection at the specified indexes.

result := it.DropByIndex(it.Range(1, 6), 1, 3)
// [1, 3, 5]