elixir-lang/elixir — pull request #1693 by pminten (2013-09-07 08:31:11+00:00)
Title: Add Stream.generate

This generates a possibly finite stream of values.

Unlike `Stream.iterate`, which passes the previously created value to the function, `Stream.generate` passes an accumulator to the function. Hence the different name.