about summary refs log tree commit diff stats
path: root/073array.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-23 14:51:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-23 14:51:20 -0700
commit991d76f32817f5515fb8db25a7d5ca2912cfe4ac (patch)
treec6b719df15532d4d5b91feae1f927f2be8a7dc9e /073array.mu
parent538815670a8747e68dd95cd43e0ac1fce184f781 (diff)
downloadmu-991d76f32817f5515fb8db25a7d5ca2912cfe4ac.tar.gz
2860 - rename 'index-address' to 'put-index'
Diffstat (limited to '073array.mu')
-rw-r--r--073array.mu3
1 files changed, 1 insertions, 2 deletions
diff --git a/073array.mu b/073array.mu
index fcd1fcb7..7fa580c5 100644
--- a/073array.mu
+++ b/073array.mu
@@ -31,8 +31,7 @@ def new-array -> result:address:shared:array:character [
     break-if done?
     curr-value:character, exists?:boolean <- next-ingredient
     assert exists?, [error in rewinding ingredients to new-array]
-    tmp:address:character <- index-address *result, i
-    *tmp <- copy curr-value
+    *result <- put-index *result, i, curr-value
     i <- add i, 1
     loop
   }