Files
rose-ash/lib
giles 6bc3c14dac
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 44s
mk: btree-walko — binary-tree walker via matche
Demo of matche dispatch + conde + recursion for tree traversal:
  (matche tree
    ((:leaf x)   (== v x))
    ((:node l r) (conde ((btree-walko l v)) ((btree-walko r v)))))

Test tree ((1 2) (3 (4 5))) yields all 5 leaves under run*. Also tests
membership (run 1) and absence.

4 new tests, 441/441 cumulative.
2026-05-08 12:02:13 +00:00
..