generate function

Iterable generate(
  1. dynamic initial(),
  2. dynamic next(
    1. dynamic
    )
)

Implementation

Iterable generate(Function() initial, Function(dynamic) next) =>
    GeneratingIterable(initial, next);