trampoline library

Classes

Bounce<T extends Object?>
Base class for computations in the trampoline pattern.
Done<T extends Object?>
Represents the final result of a bouncing computation.
More<T extends Object?>
Represents pending computation in the trampoline pattern.

Functions

trampoline<T>(Bounce<T> bounce) → T
Executes a bouncing computation until completion without recursion.