grizzly_range 2.0.9
grizzly_range: ^2.0.9 copied to clipboard

Dart native js
Flutter Android iOS web

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

example/example.dart

import 'package:grizzly_range/grizzly_range.dart';

void main() {
  print(IntRange(0, 5));
  print(IntRange(5, -5));
  print(IntRange.until(5, 2));
  print(IntRange.linspace(1, 10, 5));
  print(IntRange.linspace(10, -8, 5));

  for (final i in IntRange(0, 5)) {
    print(i);
  }

  print(IntRange(0, 5).length);
  print(IntRange(5, -5).length);
  print(IntRange.until(5, 2).length);
  print(IntRange.linspace(1, 10, 5).length);
  print(IntRange.linspace(10, -8, 5).length);
}
0
likes
100
pub points
1%
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