A dart implementation of the Range Iterator, a common function in functional languages.