on 492ae2f help sign in
23 lines 429 B history raw
1### `++tree`
3Tree mold generator
5A `++tree` can be empty, or contain a node of a type and
6left/right sub `++tree` of the same type. Pretty-printed with `{}`.
8Source
9------
11 ++ tree |* a/$-(* *) :: binary tree
12 $@($~ {n/a l/(tree a) r/(tree a)}) ::
15Examples
16--------
18 ~zod/try=> `(tree {@ tape})`[[1 "hi"] [[2 "bye"] ~ ~] ~]
19 {[2 "bye"] [1 "hi"]}
23***