diff options
Diffstat (limited to 'stdlib/source/lux/data/text/format.lux')
-rw-r--r-- | stdlib/source/lux/data/text/format.lux | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stdlib/source/lux/data/text/format.lux b/stdlib/source/lux/data/text/format.lux index 743502d11..95dd10914 100644 --- a/stdlib/source/lux/data/text/format.lux +++ b/stdlib/source/lux/data/text/format.lux @@ -51,4 +51,9 @@ (def: #export (%list formatter) (All [a] (-> (Formatter a) (Formatter (List a)))) (lambda [values] - (format "(list " (text;join-with " " (map formatter values)) ")"))) + (case values + #;Nil + "(list)" + + _ + (format "(list " (text;join-with " " (map formatter values)) ")")))) |