Back to Lo

Core Dropright

docs/data/core-dropright.md

1.53.0114 B
Original Source

Drops n elements from the end of a slice.

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