diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-20 00:37:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-20 00:37:24 -0700 |
commit | d059fe743df6a5e8a72fc1418f2c3ba1ed5ac1e6 (patch) | |
tree | a532d18a9993d429dfdcba2b87bc9e8897a8a6c2 /html/064list.mu.html | |
parent | f24eeaab13d12b87bb219cb42861c5fe7d091053 (diff) | |
download | mu-d059fe743df6a5e8a72fc1418f2c3ba1ed5ac1e6.tar.gz |
3524
Diffstat (limited to 'html/064list.mu.html')
-rw-r--r-- | html/064list.mu.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/html/064list.mu.html b/html/064list.mu.html index 2fad0c10..8d9a38ec 100644 --- a/html/064list.mu.html +++ b/html/064list.mu.html @@ -42,11 +42,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color next:&:list:_elem ] -<span class="muRecipe">def</span> push x:_elem, in:&:list:_elem<span class="muRecipe"> -> </span>result:&:list:_elem [ +<span class="muRecipe">def</span> push x:_elem, l:&:list:_elem<span class="muRecipe"> -> </span>l:&:list:_elem [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> - result<span class="Special"> <- </span>new <span class="Delimiter">{</span>(list _elem): type<span class="Delimiter">}</span> - *result<span class="Special"> <- </span>merge x, in + result:&:list:_elem<span class="Special"> <- </span>new <span class="Delimiter">{</span>(list _elem): type<span class="Delimiter">}</span> + *result<span class="Special"> <- </span>merge x, l + <span class="muControl">reply</span> result ] <span class="muRecipe">def</span> first in:&:list:_elem<span class="muRecipe"> -> </span>result:_elem [ @@ -294,7 +295,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># reverse the elements of a list</span> <span class="Comment"># (contributed by Caleb Couch)</span> -<span class="muRecipe">def</span> reverse list:&:list:_elem temp:&:list:_elem<span class="muRecipe"> -> </span>result:&:list:_elem [ +<span class="muRecipe">def</span> reverse list:&:list:_elem temp:&:list:_elem/contained-in:result<span class="muRecipe"> -> </span>result:&:list:_elem [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> <span class="muControl">reply-unless</span> list, temp |