Class Node2<V,​A>


  • public final class Node2<V,​A>
    extends Node<V,​A>
    A two-element inner tree node.
    • Field Detail

      • as

        private final V2<A> as
    • Method Detail

      • foldRight

        public <B> B foldRight​(F<A,​F<B,​B>> aff,
                               B z)
        Specified by:
        foldRight in class Node<V,​A>
      • foldLeft

        public <B> B foldLeft​(F<B,​F<A,​B>> bff,
                              B z)
        Specified by:
        foldLeft in class Node<V,​A>
      • lookup

        public P2<java.lang.Integer,​A> lookup​(F<V,​java.lang.Integer> o,
                                                    int i)
        Specified by:
        lookup in class Node<V,​A>
      • length

        public int length()
        Specified by:
        length in class Node<V,​A>
      • toVector

        public V2<A> toVector()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object