aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/collection/tree.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/collection/tree.lux')
-rw-r--r--stdlib/source/library/lux/data/collection/tree.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/library/lux/data/collection/tree.lux b/stdlib/source/library/lux/data/collection/tree.lux
index 7d12bad74..69043cb63 100644
--- a/stdlib/source/library/lux/data/collection/tree.lux
+++ b/stdlib/source/library/lux/data/collection/tree.lux
@@ -17,12 +17,12 @@
["." code]]]])
(type: .public (Tree a)
- {#.doc (doc "A generic tree data-structure.")}
+ {#.doc (example "A generic tree data-structure.")}
{#value a
#children (List (Tree a))})
(def: .public (flat tree)
- {#.doc (doc "All the leaf values of the tree, in order.")}
+ {#.doc (example "All the leaf values of the tree, in order.")}
(All [a] (-> (Tree a) (List a)))
(|> tree
(get@ #children)
@@ -55,12 +55,12 @@
(<>.and <code>.any)))
(syntax: .public (tree {root tree^})
- {#.doc (doc "Tree literals."
- (: (Tree Nat)
- (tree 12
- {34 {}
- 56 {}
- 78 {90 {}}})))}
+ {#.doc (example "Tree literals."
+ (: (Tree Nat)
+ (tree 12
+ {34 {}
+ 56 {}
+ 78 {90 {}}})))}
(in (list (` (~ (loop [[value children] root]
(` {#value (~ value)
#children (list (~+ (list\map recur children)))})))))))