aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/collection/tree.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/collection/tree.lux11
1 files changed, 6 insertions, 5 deletions
diff --git a/stdlib/source/lux/data/collection/tree.lux b/stdlib/source/lux/data/collection/tree.lux
index 612d8be49..aab50c4f3 100644
--- a/stdlib/source/lux/data/collection/tree.lux
+++ b/stdlib/source/lux/data/collection/tree.lux
@@ -43,14 +43,15 @@
<>.rec
<>.some
<c>.record
- (<>.and <c>.any)
- <c>.tuple))
+ (<>.and <c>.any)))
(syntax: #export (tree {root tree^})
{#.doc (doc "Tree literals."
- (tree Int [+10 {+20 {}
- +30 {}
- +40 {}}]))}
+ (: (Tree Nat)
+ (tree 10
+ {20 {}
+ 30 {}
+ 40 {}})))}
(wrap (list (` (~ (loop [[value children] root]
(` {#value (~ value)
#children (list (~+ (list@map recur children)))})))))))