More<T extends Object?> class final

Represents pending computation in the trampoline pattern.

Each More contains a thunk (lazy function) that will be executed to produce the next Bounce. This defers execution and prevents direct recursion, allowing the trampoline loop to handle deep stacks.

Example:

// Represent pending recursive computation
return More(() => nextBounce(n - 1));
// Instead of: return nextBounce(n - 1);
Inheritance

Constructors

More(Bounce<T> next())
Creates a pending computation with the given next thunk.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
next Bounce<T> Function()
A lazy function that produces the next computation step.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited