Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.

fj.data.fingertrees
Class Node2<V,A>

java.lang.Object
  extended by fj.data.fingertrees.Node<V,A>
      extended by fj.data.fingertrees.Node2<V,A>

public final class Node2<V,A>
extends Node<V,A>

A two-element inner tree node.


Method Summary
<B> B
foldLeft(F<B,F<A,B>> bff, B z)
           
<B> B
foldRight(F<A,F<B,B>> aff, B z)
           
 P2<Integer,A> lookup(F<V,Integer> o, int i)
           
<B> B
match(F<Node2<V,A>,B> n2, F<Node3<V,A>,B> n3)
           
 Digit<V,A> toDigit()
           
 V2<A> toVector()
           
 
Methods inherited from class fj.data.fingertrees.Node
foldLeft_, foldRight_, liftM, map, measure, measured
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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>

toDigit

public Digit<V,A> toDigit()
Specified by:
toDigit in class Node<V,A>

lookup

public P2<Integer,A> lookup(F<V,Integer> o,
                            int i)
Specified by:
lookup in class Node<V,A>

match

public <B> B match(F<Node2<V,A>,B> n2,
                   F<Node3<V,A>,B> n3)
Specified by:
match in class Node<V,A>

toVector

public V2<A> toVector()

Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg

This software is released under an open source BSD licence.