From 5472c69ac646139eecb4460e0f3a8f67a18a0f0c Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Fri, 28 Feb 2025 00:51:48 +0330 Subject: Decently performant double-linked two-way linked list implementation --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') 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); -- cgit v1.2.3