stdlib - 0.0.1

Stdlib.Data.BinaryTree

Definitions

type BinaryTree (A : Type)Source#

Constructors

| leaf
| node@{ left : BinaryTree A; element : A; right : BinaryTree A; }

fold {A B} (f : A -> B -> B -> B) (acc : B) (tree : BinaryTree A) : BSource#

fold a tree in depth-first order