grizzly_range 2.0.9

Dart native js
Flutter Android iOS web

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
100
pub points
21%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tejainece@gmail.com

License

BSD (LICENSE)

Dependencies

collection, meta, quiver_hashcode

More

Packages that depend on grizzly_range