tree-calculus.utilities

Helper definitions, mostly for testing and readability, but not fundamental.

Bit->bit

Given a tree calculus Bit, returns a Clojure/Java bit.

See also bit->Bit.

bit->Bit

Given a Clojure/Java bit, returns a tree calculus Bit.

See also Bit->bit.

Bite->Byte

(Bite->Byte B)

Given a tree calculus Bite B, returns a Clojure/Java Byte integer.

See also Byte->Bite.

Byte->Bite

(Byte->Bite B)

Given a Clojure/Java Byte B, returns a tree calculus Bite.

See also Bite->Byte.

Empty?

(Empty? L)

Returns true if tree calculus list L is empty.

List->seq

(List->seq L)(List->seq L acc)

Given tree calculus List L, returns a Clojure sequence of elements.

nat->tree

(nat->tree n)(nat->tree n t)

Given natural number n, returns a tree representation.

See also tree->nat.

str->String

(str->String s)

Given Clojure/Java string s, returns a tree calculus String.

See also String->str.

String->str

(String->str S)

Given tree calculus String S, returns a Clojure/Java string.

See also str->String.

tree->nat

(tree->nat t)(tree->nat t n)

Given unlabelled binary tree t, returns equivalent natural number.

See also nat->tree.

ΔΔ

Stem resulting from evaluating (Δ Δ).

ΔΔΔ

Fork resulting from evaluating (Δ Δ Δ).