tree-calculus.utilities
Helper definitions, mostly for testing and readability, but not fundamental.
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.
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.