diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-12-03 23:25:40 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-12-03 23:25:40 -0800 |
commit | 4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 (patch) | |
tree | 85c1b7310cca932797d727a3de8da96eb175d8da /html/070table.mu.html | |
parent | ef7d834fdd826977cd8d43253052a7b8e1c5aa72 (diff) | |
download | mu-4a48bedcd1d708a43d43dc6259a4e45c52ea3d00.tar.gz |
4134 - 'input' = 'ingredient'
Diffstat (limited to 'html/070table.mu.html')
-rw-r--r-- | html/070table.mu.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/070table.mu.html b/html/070table.mu.html index c5d0c6ac..620dab6b 100644 --- a/html/070table.mu.html +++ b/html/070table.mu.html @@ -117,7 +117,7 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr"> 55 </span> <span id="L56" class="LineNr"> 56 </span><span class="muRecipe">def</span> <a href='070table.mu.html#L56'>new-table</a> <a href='075channel.mu.html#L399'>capacity</a>:num<span class="muRecipe"> -> </span>result:&:<a href='070table.mu.html#L44'>table</a>:_key:_value [ <span id="L57" class="LineNr"> 57 </span> <span class="Constant">local-scope</span> -<span id="L58" class="LineNr"> 58 </span> <span class="Constant">load-ingredients</span> +<span id="L58" class="LineNr"> 58 </span> <span class="Constant">load-inputs</span> <span id="L59" class="LineNr"> 59 </span> result <span class="Special"><-</span> new <span class="Delimiter">{</span>(table _key _value): type<span class="Delimiter">}</span> <span id="L60" class="LineNr"> 60 </span> data:&:@:<a href='070table.mu.html#L50'>table-row</a>:_key:_value <span class="Special"><-</span> new <span class="Delimiter">{</span>(table-row _key _value): type<span class="Delimiter">}</span>, <a href='075channel.mu.html#L399'>capacity</a> <span id="L61" class="LineNr"> 61 </span> *result <span class="Special"><-</span> merge <span class="Constant">0/length</span>, <a href='075channel.mu.html#L399'>capacity</a>, data @@ -127,7 +127,7 @@ if ('onhashchange' in window) { <span id="L65" class="LineNr"> 65 </span><span class="Comment"># then we could handle conflicts simply by resizing the table</span> <span id="L66" class="LineNr"> 66 </span><span class="muRecipe">def</span> put-index <a href='070table.mu.html#L44'>table</a>:&:<a href='070table.mu.html#L44'>table</a>:_key:_value, key:_key, value:_value<span class="muRecipe"> -> </span><a href='070table.mu.html#L44'>table</a>:&:<a href='070table.mu.html#L44'>table</a>:_key:_value [ <span id="L67" class="LineNr"> 67 </span> <span class="Constant">local-scope</span> -<span id="L68" class="LineNr"> 68 </span> <span class="Constant">load-ingredients</span> +<span id="L68" class="LineNr"> 68 </span> <span class="Constant">load-inputs</span> <span id="L69" class="LineNr"> 69 </span> hash:num <span class="Special"><-</span> hash key <span id="L70" class="LineNr"> 70 </span> hash <span class="Special"><-</span> <a href='070table.mu.html#L103'>abs</a> hash <span id="L71" class="LineNr"> 71 </span> <a href='075channel.mu.html#L399'>capacity</a>:num <span class="Special"><-</span> get *table, <span class="Constant"><a href='075channel.mu.html#L399'>capacity</a>:offset</span> @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span id="L83" class="LineNr"> 83 </span><span class="muRecipe">def</span> index <a href='070table.mu.html#L44'>table</a>:&:<a href='070table.mu.html#L44'>table</a>:_key:_value, key:_key<span class="muRecipe"> -> </span>result:_value, found?:bool [ <span id="L84" class="LineNr"> 84 </span> <span class="Constant">local-scope</span> -<span id="L85" class="LineNr"> 85 </span> <span class="Constant">load-ingredients</span> +<span id="L85" class="LineNr"> 85 </span> <span class="Constant">load-inputs</span> <span id="L86" class="LineNr"> 86 </span> hash:num <span class="Special"><-</span> hash key <span id="L87" class="LineNr"> 87 </span> hash <span class="Special"><-</span> <a href='070table.mu.html#L103'>abs</a> hash <span id="L88" class="LineNr"> 88 </span> <a href='075channel.mu.html#L399'>capacity</a>:num <span class="Special"><-</span> get *table, <span class="Constant"><a href='075channel.mu.html#L399'>capacity</a>:offset</span> @@ -164,7 +164,7 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span id="L103" class="LineNr">103 </span><span class="muRecipe">def</span> <a href='070table.mu.html#L103'>abs</a> n:num<span class="muRecipe"> -> </span>result:num [ <span id="L104" class="LineNr">104 </span> <span class="Constant">local-scope</span> -<span id="L105" class="LineNr">105 </span> <span class="Constant">load-ingredients</span> +<span id="L105" class="LineNr">105 </span> <span class="Constant">load-inputs</span> <span id="L106" class="LineNr">106 </span> positive?:bool <span class="Special"><-</span> greater-or-equal n,<span class="Constant"> 0</span> <span id="L107" class="LineNr">107 </span> <span class="muControl">return-if</span> positive?, n <span id="L108" class="LineNr">108 </span> result <span class="Special"><-</span> multiply n,<span class="Constant"> -1</span> |