Stream.from_index/1

defmodule Stream do
  def from_index(fun_or_offset \\ 0)
end

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.