diff options
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); |
