Back to Lo

Core Dropbyindex

docs/data/core-dropbyindex.md

1.53.0153 B
Original Source

Drops elements from a slice by index. Negative indexes count from the end.

go
lo.DropByIndex([]int{0, 1, 2, 3, 4, 5}, 2, 4, -1)
// []int{0, 1, 3}