Lazy Generators

Denys Duchier


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


{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