itertools 0.1.0 itertools: ^0.1.0 copied to clipboard
Package for advanced simple and easy work with Dart iterators
itertools · #
Simple package for easy work with Dart iterators just like Python itertools.
Provide methods / functions:
- zip2/zip3/etc
- chain
- count
- enumerate / mapIndexed
- and other helpers
Links #
Usage #
import 'package:itertools/itertools.dart';
void main() {
print(zip2(['H', ',', 'a', 'l'], ['i', ' ', 'l', '!'])
.map((e) => e.item1 + e.item2)
.join());
// output: Hi, all!
}
Features and bugs #
Please file feature requests and bugs at the issue tracker.