aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex/command/clean.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/aedifex/command/clean.lux')
-rw-r--r--stdlib/source/test/aedifex/command/clean.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/test/aedifex/command/clean.lux b/stdlib/source/test/aedifex/command/clean.lux
index 30ef6eb6f..59908a364 100644
--- a/stdlib/source/test/aedifex/command/clean.lux
+++ b/stdlib/source/test/aedifex/command/clean.lux
@@ -43,10 +43,10 @@
(def: (files prefix)
(-> Path (Random (List [Path Binary])))
(do {! random.monad}
- [count (\ ! map (n.% 10) random.nat)
+ [count (\ ! each (n.% 10) random.nat)
names (random.set text.hash count ..node_name)
contents (random.list count ($binary.random 100))]
- (in (list.zipped/2 (list\map (|>> (format prefix)) (set.list names))
+ (in (list.zipped/2 (list\each (|>> (format prefix)) (set.list names))
contents))))
(def: (create_file! fs [path content])
@@ -58,7 +58,7 @@
(do {! (try.with async.monad)}
[_ (: (Async (Try Any))
(file.make_directories async.monad fs path))
- _ (monad.map ! (..create_file! fs) files)]
+ _ (monad.each ! (..create_file! fs) files)]
(in [])))
(def: (directory_exists? fs)
@@ -75,8 +75,8 @@
[directory_exists? (..directory_exists? fs directory_path)
files_exist? (: (Action (List Bit))
(|> files
- (list\map product.left)
- (monad.map ///action.monad (..file_exists? fs))))]
+ (list\each product.left)
+ (monad.each ///action.monad (..file_exists? fs))))]
(in (and directory_exists?
(list.every? (|>>) files_exist?)))))