Data.BinaryTree
Contents
type BinaryTree (A : Type)Source#
Constructors
fold {A B} (f : A -> B -> B -> B) (acc : B) : BinaryTree A -> BSource#
fold a tree in depth first order
length : {A : Type} -> BinaryTree A -> NatSource#
to-list : {A : Type} -> BinaryTree A -> List ASource#