mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
b6154d0f8d
* feat: add Take, TakeWhile, FilterTake, Window, and Sliding functions Add five new slice manipulation functions with tests, examples, and documentation. * improve Take function safety and add benchmarks * rename FilterTake to TakeFilter and add README docs * remove Window and Sliding benchmarks * apply gofmt and fix linter errors * apply gofmt and fix linter errors
593 B
593 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Drop | drop | slice.go#L441 | core | slice | https://go.dev/play/p/JswS7vXRJP2 |
|
|
170 |
|
Drops n elements from the beginning of a slice.
lo.Drop([]int{0, 1, 2, 3, 4, 5}, 2)
// []int{2, 3, 4, 5}