Back to Lo

Core Withoutnth

docs/data/core-withoutnth.md

1.53.0135 B
Original Source

Returns a slice excluding the elements at the given indexes.

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