Algae v0.12.2 Algae.Tree View Source

Represent a binary tree. Nodes may be empty, a leaf, or a branch (recursive subtree).

Examples

%Algae.Tree.Branch{
  left:  %Algae.Tree.Empty{},
  right: %Algae.Tree.Leaf{leaf: 42}
}

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: Empty.t | Leaf.t | Branch.t

Link to this section Functions

Link to this function tree(leaf_value) View Source
tree(keyword | any) :: Algae.Tree.Branch.t