mirror of
https://github.com/samber/lo.git
synced 2026-04-22 15:37:14 +08:00
fa095e4b4f
* fix(doc): fix go playground demo URL * fix(doc): add more go playground demo URL
560 B
560 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Range | range | math.go#L9 | core | math | https://go.dev/play/p/rho00R0WuHs |
|
|
0 |
|
Creates a slice of integers of the given length starting at 0. Negative length produces a descending sequence.
lo.Range(4)
// []int{0, 1, 2, 3}
lo.Range(-4)
// []int{0, -1, -2, -3}