itertools 0.2.4 copy "itertools: ^0.2.4" to clipboard
itertools: ^0.2.4 copied to clipboard

Package for advanced simple and easy work with Dart iterators

example/example.dart

import 'package:itertools/itertools.dart';

void main() {
  print(zip2(['H', ',', 'a', 'l'], ['i', ' ', 'l', '!'])
      .starmap((first, second) => first + second)
      // equal:
      // .map((e) => e.item1 + e.item2)
      .join());
  // output: Hi, all!

  print(range(first: 1, last: 10, step: 3).reversed.toList());
  // output: [7, 4, 1]

  // or more compact

  print(1.to(10, step: 3).reversed.toList());
  // output: [7, 4, 1]
}
5
likes
150
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Package for advanced simple and easy work with Dart iterators

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

tuple_dart

More

Packages that depend on itertools