trampoline library
Iteratively evaluates deferred computation steps to avoid recursive call-stack growth.
Represent each pending step with More and the final value with Done. A trampoline is synchronous, and the next step must be deferred inside More for the computation to remain stack-safe.
Classes
Functions
-
trampoline<
T> (Bounce< T> bounce) → T - Executes a bouncing computation until completion without recursion.