aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-02-28 00:51:48 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-02-28 00:51:48 +0330
commit5472c69ac646139eecb4460e0f3a8f67a18a0f0c (patch)
tree1705d37003213e9d81235ab59b58c67ccca855bf /main.c
parentOverhauled print macro (diff)
Decently performant double-linked two-way linked list implementation
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index abd1b21..58c28dd 100644
--- a/main.c
+++ b/main.c
@@ -7,6 +7,8 @@ datatype(binarytree, ((leaf, int), (node, binarytree *, int, binarytree *) ));
int main() {
const auto tree = instance(binarytree, leaf, 3);
+ print(&tree);
+
match(tree) {
of(leaf, v) print("Leafy ", v);
of(node, _, v, _) print("Nodey ", v);