aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/region.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/control/region.lux')
-rw-r--r--stdlib/source/library/lux/control/region.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/control/region.lux b/stdlib/source/library/lux/control/region.lux
index 1ca544ca6..a8a30cfd2 100644
--- a/stdlib/source/library/lux/control/region.lux
+++ b/stdlib/source/library/lux/control/region.lux
@@ -58,8 +58,8 @@
(do {! monad}
[[cleaners output] (computation [[] (list)])]
(|> cleaners
- (monad.map ! (function (_ cleaner) (cleaner [])))
- (\ ! map (list\mix clean output)))))
+ (monad.each ! (function (_ cleaner) (cleaner [])))
+ (\ ! each (list\mix clean output)))))
(def: .public (acquire! monad cleaner value)
(All [! a] (-> (Monad !) (-> a (! (Try Any))) a
@@ -74,10 +74,10 @@
(-> (Functor !)
(All [r] (Functor (Region r !)))))
- (def: (map f)
+ (def: (each f)
(function (_ fa)
(function (_ region+cleaners)
- (\ super map
+ (\ super each
(function (_ [cleaners' temp])
[cleaners' (case temp
(#try.Success value)
@@ -124,7 +124,7 @@
(function (_ [region cleaners])
(\ super in [cleaners (#try.Success value)])))
- (def: (join ffa)
+ (def: (conjoint ffa)
(function (_ [region cleaners])
(do super
[[cleaners efa] (ffa [region cleaners])]
@@ -153,6 +153,6 @@
(-> (Monad !) (! a)
(All [r] (Region r ! a))))
(function (_ [region cleaners])
- (\ monad map
+ (\ monad each
(|>> #try.Success [cleaners])
operation)))