about summary refs log tree commit diff stats
path: root/074list.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-14 13:00:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-14 13:00:21 -0700
commit44bab2e4b4c8252b20c848108fa7bf9e33e2b26a (patch)
tree59312503c564a69b33105fe5801e5f79db65587e /074list.mu
parent3c393fd2449ebdd362f39873106199f089ed6718 (diff)
downloadmu-44bab2e4b4c8252b20c848108fa7bf9e33e2b26a.tar.gz
2782 - directly use string literals everywhere
Diffstat (limited to '074list.mu')
-rw-r--r--074list.mu9
1 files changed, 2 insertions, 7 deletions
diff --git a/074list.mu b/074list.mu
index 856c5e9c..6cb7a9a1 100644
--- a/074list.mu
+++ b/074list.mu
@@ -83,11 +83,7 @@ def to-buffer in:address:shared:list:_elem, buf:address:shared:buffer -> buf:add
   next:address:shared:list:_elem <- rest in
   nextn:number <- copy next
   return-unless next
-  space:character <- copy 32/space
-  buf <- append buf, space:character
-  s:address:shared:array:character <- new [-> ]
-  n:number <- length *s
-  buf <- append buf, s
+  buf <- append buf, [ -> ]
   # and recurse
   remaining:number, optional-ingredient-found?:boolean <- next-ingredient
   {
@@ -104,8 +100,7 @@ def to-buffer in:address:shared:list:_elem, buf:address:shared:buffer -> buf:add
     return
   }
   # past recursion depth; insert ellipses and stop
-  s:address:shared:array:character <- new [...]
-  append buf, s
+  append buf, [...]
 ]
 
 scenario stash-on-list-converts-to-text [