Package fj.control

Class Trampoline.Normal<A>

    • Constructor Detail

      • Normal

        private Normal()
    • Method Detail

      • 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.