diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-28 20:08:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-28 20:08:04 -0700 |
commit | 6c69569a4c4ca3a23635d4d7a40f0fe557194619 (patch) | |
tree | 162ab23faa9fdc402732f35b875b8755bb646b33 /html/070table.mu.html | |
parent | 6f65d5918f4b73de56e6cb6362c7cbc7dbbe5945 (diff) | |
download | mu-6c69569a4c4ca3a23635d4d7a40f0fe557194619.tar.gz |
3430
Diffstat (limited to 'html/070table.mu.html')
-rw-r--r-- | html/070table.mu.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/070table.mu.html b/html/070table.mu.html index af164bcd..42dae611 100644 --- a/html/070table.mu.html +++ b/html/070table.mu.html @@ -36,9 +36,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># arbitrary types.</span> <span class="muScenario">scenario</span> table-read-write [ + <span class="Constant">local-scope</span> + tab:&:table:num:num<span class="Special"> <- </span>new-table <span class="Constant">30</span> run [ - <span class="Constant">local-scope</span> - tab:&:table:num:num<span class="Special"> <- </span>new-table <span class="Constant">30</span> put-index tab, <span class="Constant">12</span>, <span class="Constant">34</span> <span class="Constant">1</span>:num/<span class="Special">raw <- </span>index tab, <span class="Constant">12</span> ] @@ -48,10 +48,10 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] <span class="muScenario">scenario</span> table-read-write-non-integer [ + <span class="Constant">local-scope</span> + key:text<span class="Special"> <- </span>new <span class="Constant">[abc def]</span> + <span class="Delimiter">{</span>tab: (address table text number)<span class="Delimiter">}</span><span class="Special"> <- </span>new-table <span class="Constant">30</span> run [ - <span class="Constant">local-scope</span> - key:text<span class="Special"> <- </span>new <span class="Constant">[abc def]</span> - <span class="Delimiter">{</span>tab: (address table text number)<span class="Delimiter">}</span><span class="Special"> <- </span>new-table <span class="Constant">30</span> put-index tab, key, <span class="Constant">34</span> <span class="Constant">1</span>:num/<span class="Special">raw <- </span>index tab, key ] @@ -75,8 +75,8 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="muRecipe">def</span> new-table capacity:num<span class="muRecipe"> -> </span>result:&:table:_key:_value [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> - result<span class="Special"> <- </span>new <span class="Delimiter">{</span>(table _key _value): type<span class="Delimiter">}</span> - data:&:@:table_row:_key:_value<span class="Special"> <- </span>new <span class="Delimiter">{</span>(table_row _key _value): type<span class="Delimiter">}</span>, capacity + result<span class="Special"> <- </span>new <span class="Delimiter">{</span>(table _key _value): <span class="muData">type</span><span class="Delimiter">}</span> + data:&:@:table_row:_key:_value<span class="Special"> <- </span>new <span class="Delimiter">{</span>(table_row _key _value): <span class="muData">type</span><span class="Delimiter">}</span>, capacity *result<span class="Special"> <- </span>merge <span class="Constant">0/length</span>, capacity, data ] |