iterable library

Some fancy iterables.

Functions

digits(int number, [ int base = 10 ]) Iterable<int>
Returns an iterable over the digits of the number, in the optionally given base.
fibonacci([int f0 = 0, int f1 = 1 ]) Iterable<int>
Returns an iterable over the fibonacci sequence starting with with f0 and f1. The default sequence is indefinitely long and by default starts with 0, 1, 1, 2, 3, 5, 8, 13, ...
permutations(List list, [ Comparator comparator ]) Iterable<List>
Returns an iterable over the lexographic permutations of list using the optional comparator.
string(String string) Iterable<String>
Returns an iterable over the characters of the string.