]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/calendar/format/format.factor
core: Add words/unwords/unwords-as and use them.
[factor.git] / basis / calendar / format / format.factor
index 016f49963fc5d7a3438c1daa693a24046cb6daa9..f5a57d7f2ad622d1d2950a95711753fe0764a1c0 100644 (file)
@@ -73,7 +73,7 @@ M: timestamp day.
     [ number>string ] [ month-name ] bi* swap " " glue 20 center. ;
 
 : days-header. ( -- )
-    day-abbreviations2 " " join print ;
+    day-abbreviations2 unwords print ;
 
 : days. ( year month -- )
     [ 1 (day-of-week) dup [ "   " write ] times ]
@@ -238,7 +238,7 @@ M: integer elapsed-time
             [ first [ /mod ] [ dup ] if* ] [ second ] bi swap
             dup 0 > [ number>string prepend , ] [ 2drop ] if
         ] each drop
-    ] { } make [ "0s" ] [ reverse " " join ] if-empty ;
+    ] { } make [ "0s" ] [ reverse unwords ] if-empty ;
 
 M: real elapsed-time
     >integer elapsed-time ;