Stream

from_index/1

from_index(fun_or_offset \\ 0)

Builds a stream that emits a sequence of integers, starting from the given offset (defaulting to 0).

If a function is supplied, it will be invoked with elements starting from the offset.