Trampoline
public final class Trampoline<A> : TrampolineOf<A>The Trampoline type helps us overcome stack safety issues of recursive calls by transforming them into loops.
- 
                  
                  Creates a Trampoline that does not need to recurse and provides the final result. DeclarationSwift public static func done(_ value: A) -> Trampoline<A>ParametersvalueResult of the computation. Return ValueA Trampoline that provides a value and stops recursing. 
- 
                  
                  Creates a Trampoline that performs a computation and needs to recurse. DeclarationSwift public static func `defer`(_ f: @escaping () -> Trampoline<A>) -> Trampoline<A>ParametersfFunction describing the recursive step. Return ValueA Trampoline that describes a recursive step. 
- 
                  
                  Creates a Trampoline that performs a computation in a moment in the future. DeclarationSwift public static func later(_ f: @escaping () -> A) -> Trampoline<A>ParametersfFunction to compute the value wrapped in this Trampoline. Return ValueA Trampoline that delays the obtention of a value and stops recursing. 
- 
                  
                  Executes the computations described by this Trampoline by converting it into a loop. DeclarationSwift public final func run() -> AReturn ValueValue resulting from the execution of the Trampoline. 
- 
                  
                  Safe downcast. DeclarationSwift public static func fix(_ fa: TrampolineOf<A>) -> Trampoline<A>ParametersfaValue in the higher-kind form. Return ValueValue cast to Trampoline. 
 
             Install in Dash
              Install in Dash
             Trampoline Class Reference
        Trampoline Class Reference