diff options
| author | 2025-02-28 00:51:48 +0330 | |
|---|---|---|
| committer | 2025-02-28 00:51:48 +0330 | |
| commit | 5472c69ac646139eecb4460e0f3a8f67a18a0f0c (patch) | |
| tree | 1705d37003213e9d81235ab59b58c67ccca855bf /main.c | |
| parent | Overhauled print macro (diff) | |
Decently performant double-linked two-way linked list implementation
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
