Trampoline

public class Trampoline<A>

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func done(_ value: A) -> Trampoline<A>
  • Undocumented

    Declaration

    Swift

    public static func `defer`(_ f: @escaping () -> Trampoline<A>) -> Trampoline<A>
  • Undocumented

    Declaration

    Swift

    public static func later(_ f: @escaping () -> A) -> Trampoline<A>
  • Undocumented

    Declaration

    Swift

    public final func run() -> A
  • Undocumented

    Declaration

    Swift

    public func flatMap<B>(_ f: @escaping (A) -> Trampoline<B>) -> Trampoline<B>
  • Undocumented

    Declaration

    Swift

    public func map<B>(_ f: @escaping (A) -> B) -> Trampoline<B>