grizzly_range 2.0.8 copy "grizzly_range: ^2.0.8" to clipboard
grizzly_range: ^2.0.8 copied to clipboard

outdated

Lazy and efficient 'range' iterables to generate values based on start, stop and step/count.

Range #

Lazy and efficient 'range' iterables to generate values based on start, stop and step/count.

Int ranges #

print(IntRange(0, 5));

Ranges can also be descending:

print(IntRange(5, -5));

Until #

IntRange.until returns an Iterable<int> with range [0, stop] with provided step.

print(IntRange.until(50, 10));

Linspace #

IntRange.linspace returns an Iterable<int> with range [start, stop] with [count] elements in it.

print(IntRange.linspace(1, 10, 5));

Note: For other types of ranges, please refer sections below.

Extent #

print(Extent.compute<int>(List<int>.generate(10, (i) => i * 10)..shuffle()));

Ranging an Extent #

print(Extent(5, 50).range(5));

TODO DoubleRange

TODO TimeRange

TODO MonthRange

TODO others

0
likes
0
pub points
15%
popularity

Publisher

unverified uploader

Lazy and efficient 'range' iterables to generate values based on start, stop and step/count.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, meta, quiver_hashcode

More

Packages that depend on grizzly_range