count function

Iterable<num> count([
  1. num start = 0,
  2. num step = 1
])

Returns an infinite Iterable of nums, starting from start and increasing by step.

Calling Iterator.current before Iterator.moveNext throws StateError.

Implementation

Iterable<num> count([num start = 0, num step = 1]) => _Count(start, step);