Generator

sealed class Generator<out T, out A>(source)

One step of a generator run by generator: either Finished or Yielded.

Inheritors

Types

Link copied to clipboard
class Finished<out A> : Generator<Nothing, A>

The generator returned result; there is nothing left to resume.

Link copied to clipboard
class Yielded<out T, out A> : Generator<T, A>

The generator yielded value. resume returns the program for the next step; the driver decides when, and whether, to run it.