Back to Lo

Core Rangefrom

docs/data/core-rangefrom.md

1.53.0162 B
Original Source

Creates a slice starting at start with the specified length. Negative length yields a descending sequence.

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