Stream

iterate/2

iterate(start, fun)

Emits a sequence of values, starting with start. Successive values are generated by calling fun on the previous value.