diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-20 10:40:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-20 10:40:07 -0700 |
commit | 124c67645cb6f1b9f06d7104c5398fa4732e2f25 (patch) | |
tree | 8d4419ff18f494d4ad5e3318820764c5fa4c474a /html/063array.mu.html | |
parent | 130596f0e0efe89a4bee136c1d62ecc577c756e2 (diff) | |
download | mu-124c67645cb6f1b9f06d7104c5398fa4732e2f25.tar.gz |
3934
Diffstat (limited to 'html/063array.mu.html')
-rw-r--r-- | html/063array.mu.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/063array.mu.html b/html/063array.mu.html index f4c97ebb..8ec4072b 100644 --- a/html/063array.mu.html +++ b/html/063array.mu.html @@ -76,20 +76,20 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span><span class="Comment"># create an array out of a list of args</span> <span id="L16" class="LineNr"> 16 </span><span class="muRecipe">def</span> <a href='063array.mu.html#L16'>new-array</a><span class="muRecipe"> -> </span>result:&:@:_elem [ <span id="L17" class="LineNr"> 17 </span> <span class="Constant">local-scope</span> -<span id="L18" class="LineNr"> 18 </span> <a href='075channel.mu.html#L379'>capacity</a>:num <span class="Special"><-</span> copy<span class="Constant"> 0</span> +<span id="L18" class="LineNr"> 18 </span> <a href='075channel.mu.html#L399'>capacity</a>:num <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L19" class="LineNr"> 19 </span> <span class="Delimiter">{</span> <span id="L20" class="LineNr"> 20 </span> <span class="Conceal">¦</span> <span class="Comment"># while read curr-value</span> <span id="L21" class="LineNr"> 21 </span> <span class="Conceal">¦</span> curr-value:_elem, exists?:bool <span class="Special"><-</span> <span class="Constant">next-ingredient</span> <span id="L22" class="LineNr"> 22 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> exists? -<span id="L23" class="LineNr"> 23 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L379'>capacity</a> <span class="Special"><-</span> add <a href='075channel.mu.html#L379'>capacity</a>,<span class="Constant"> 1</span> +<span id="L23" class="LineNr"> 23 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L399'>capacity</a> <span class="Special"><-</span> add <a href='075channel.mu.html#L399'>capacity</a>,<span class="Constant"> 1</span> <span id="L24" class="LineNr"> 24 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L25" class="LineNr"> 25 </span> <span class="Delimiter">}</span> -<span id="L26" class="LineNr"> 26 </span> result <span class="Special"><-</span> new <span class="Constant">_elem:type</span>, <a href='075channel.mu.html#L379'>capacity</a> +<span id="L26" class="LineNr"> 26 </span> result <span class="Special"><-</span> new <span class="Constant">_elem:type</span>, <a href='075channel.mu.html#L399'>capacity</a> <span id="L27" class="LineNr"> 27 </span> <span class="Constant">rewind-ingredients</span> <span id="L28" class="LineNr"> 28 </span> i:num <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L29" class="LineNr"> 29 </span> <span class="Delimiter">{</span> <span id="L30" class="LineNr"> 30 </span> <span class="Conceal">¦</span> <span class="Comment"># while read curr-value</span> -<span id="L31" class="LineNr"> 31 </span> <span class="Conceal">¦</span> done?:bool <span class="Special"><-</span> greater-or-equal i, <a href='075channel.mu.html#L379'>capacity</a> +<span id="L31" class="LineNr"> 31 </span> <span class="Conceal">¦</span> done?:bool <span class="Special"><-</span> greater-or-equal i, <a href='075channel.mu.html#L399'>capacity</a> <span id="L32" class="LineNr"> 32 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L33" class="LineNr"> 33 </span> <span class="Conceal">¦</span> curr-value:_elem, exists?:bool <span class="Special"><-</span> <span class="Constant">next-ingredient</span> <span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> assert exists?, <span class="Constant">[error in rewinding ingredients to new-array]</span> |