Package fj.control

Class Trampoline.Normal<A>

java.lang.Object
fj.control.Trampoline<A>
fj.control.Trampoline.Normal<A>
Direct Known Subclasses:
Trampoline.Pure, Trampoline.Suspend
Enclosing class:
Trampoline<A>

private abstract static class Trampoline.Normal<A> extends Trampoline<A>
  • Constructor Details

    • Normal

      private Normal()
  • Method Details

    • foldNormal

      public abstract <R> R foldNormal(F<A,R> pure, F<P1<Trampoline<A>>,R> k)
    • bind

      public final <B> Trampoline<B> bind(F<A,Trampoline<B>> f)
      Description copied from class: Trampoline
      Binds the given continuation to the result of this trampoline.
      Specified by:
      bind in class Trampoline<A>
      Parameters:
      f - A function that constructs a trampoline from the result of this trampoline.
      Returns:
      A new trampoline that runs this trampoline, then continues with the given function.