Lazy Generators

Denys Duchier

module
x-oz://system/Generator.ozf

This module provides lazy generators, i.e. functions that return lists which are lazily computed concurrently, by-need

Exports

{Generator.Tails +L ?Tails}
returns a lazy list of all non-empty tails of list L
{Generator.count +From +To +By ?L}
returns a lazy list of integers starting at From, ending at at most To, and in steps of By. Whether we count up or down is determined by the sign of By