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

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

example/example.dart

import 'dart:io';

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 0.to(5)) {
    stdout.write('$i ');
  }
  print('');

  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
120
pub points
16%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

collection, meta, mt19937, quiver, text_table

More

Packages that depend on grizzly_range