diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 10:30:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 10:30:24 -0700 |
commit | 51b0936fc78814134c2e90256fda6e048ba5244e (patch) | |
tree | b8bd8321e982be64e5d40972c69da61d93f74b3d /063array.mu | |
parent | 7a84094adbf7570e0b9716d8f469458b901efec8 (diff) | |
download | mu-51b0936fc78814134c2e90256fda6e048ba5244e.tar.gz |
3386
Diffstat (limited to '063array.mu')
-rw-r--r-- | 063array.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/063array.mu b/063array.mu index 6410924d..2f859203 100644 --- a/063array.mu +++ b/063array.mu @@ -18,7 +18,7 @@ def new-array -> result:text [ capacity:num <- copy 0 { # while read curr-value - curr-value:char, exists?:boolean <- next-ingredient + curr-value:char, exists?:bool <- next-ingredient break-unless exists? capacity <- add capacity, 1 loop @@ -28,9 +28,9 @@ def new-array -> result:text [ i:num <- copy 0 { # while read curr-value - done?:boolean <- greater-or-equal i, capacity + done?:bool <- greater-or-equal i, capacity break-if done? - curr-value:char, exists?:boolean <- next-ingredient + curr-value:char, exists?:bool <- next-ingredient assert exists?, [error in rewinding ingredients to new-array] *result <- put-index *result, i, curr-value i <- add i, 1 |