aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/collection/tree/finger.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/data/collection/tree/finger.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/library/lux/data/collection/tree/finger.lux b/stdlib/source/library/lux/data/collection/tree/finger.lux
index 3f807f49f..b8313112c 100644
--- a/stdlib/source/library/lux/data/collection/tree/finger.lux
+++ b/stdlib/source/library/lux/data/collection/tree/finger.lux
@@ -22,10 +22,10 @@
(type: .public (Builder @ t)
(Interface
- (: (All [v]
+ (: (All (_ v)
(-> t v (Tree @ t v)))
leaf)
- (: (All [v]
+ (: (All (_ v)
(-> (Tree @ t v)
(Tree @ t v)
(Tree @ t v)))
@@ -33,7 +33,7 @@
(template [<name> <tag> <output>]
[(def: .public <name>
- (All [@ t v] (-> (Tree @ t v) <output>))
+ (All (_ @ t v) (-> (Tree @ t v) <output>))
(|>> :representation (value@ <tag>)))]
[tag #tag t]
@@ -41,7 +41,7 @@
)
(implementation: .public (builder monoid)
- (All [t] (Ex [@] (-> (Monoid t) (Builder @ t))))
+ (All (_ t) (Ex (_ @) (-> (Monoid t) (Builder @ t))))
(def: (leaf tag value)
(:abstraction
@@ -56,7 +56,7 @@
#root (0 #1 [left right])})))
(def: .public (value tree)
- (All [@ t v] (-> (Tree @ t v) v))
+ (All (_ @ t v) (-> (Tree @ t v) v))
(case (value@ #root (:representation tree))
(0 #0 value)
value
@@ -65,7 +65,7 @@
(value left)))
(def: .public (tags tree)
- (All [@ t v] (-> (Tree @ t v) (List t)))
+ (All (_ @ t v) (-> (Tree @ t v) (List t)))
(case (value@ #root (:representation tree))
(0 #0 value)
(list (value@ #tag (:representation tree)))
@@ -75,7 +75,7 @@
(tags right))))
(def: .public (values tree)
- (All [@ t v] (-> (Tree @ t v) (List v)))
+ (All (_ @ t v) (-> (Tree @ t v) (List v)))
(case (value@ #root (:representation tree))
(0 #0 value)
(list value)
@@ -85,7 +85,7 @@
(values right))))
(def: .public (one predicate tree)
- (All [@ t v] (-> (Predicate t) (Tree @ t v) (Maybe v)))
+ (All (_ @ t v) (-> (Predicate t) (Tree @ t v) (Maybe v)))
(let [[monoid tag root] (:representation tree)]
(if (predicate tag)
(let [(^open "tag//.") monoid]
@@ -104,7 +104,7 @@
)
(def: .public (exists? predicate tree)
- (All [@ t v] (-> (Predicate t) (Tree @ t v) Bit))
+ (All (_ @ t v) (-> (Predicate t) (Tree @ t v) Bit))
(case (..one predicate tree)
(#.Some _)
true