aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/text/format.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/text/format.lux')
-rw-r--r--stdlib/source/library/lux/data/text/format.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/data/text/format.lux b/stdlib/source/library/lux/data/text/format.lux
index cd953ef05..11d1523e8 100644
--- a/stdlib/source/library/lux/data/text/format.lux
+++ b/stdlib/source/library/lux/data/text/format.lux
@@ -45,7 +45,7 @@
(implementation: .public functor
(contravariant.Functor Format)
- (def: (map f fb)
+ (def: (each f fb)
(|>> f fb)))
(syntax: .public (format [fragments (<>.many <code>.any)])
@@ -117,7 +117,7 @@
(def: .public (list formatter)
(All [a] (-> (Format a) (Format (List a))))
- (|>> (list\map (|>> formatter (format " ")))
+ (|>> (list\each (|>> formatter (format " ")))
text.together
(text.enclosed ["(list" ")"])))