about summary refs log tree commit diff stats
path: root/html/064list.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-20 00:37:24 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-20 00:37:24 -0700
commitd059fe743df6a5e8a72fc1418f2c3ba1ed5ac1e6 (patch)
treea532d18a9993d429dfdcba2b87bc9e8897a8a6c2 /html/064list.mu.html
parentf24eeaab13d12b87bb219cb42861c5fe7d091053 (diff)
downloadmu-d059fe743df6a5e8a72fc1418f2c3ba1ed5ac1e6.tar.gz
3524
Diffstat (limited to 'html/064list.mu.html')
-rw-r--r--html/064list.mu.html9
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:&amp;:list:_elem
 ]
 
-<span class="muRecipe">def</span> push x:_elem, in:&amp;:list:_elem<span class="muRecipe"> -&gt; </span>result:&amp;:list:_elem [
+<span class="muRecipe">def</span> push x:_elem, l:&amp;:list:_elem<span class="muRecipe"> -&gt; </span>l:&amp;:list:_elem [
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>
-  result<span class="Special"> &lt;- </span>new <span class="Delimiter">{</span>(list _elem): type<span class="Delimiter">}</span>
-  *result<span class="Special"> &lt;- </span>merge x, in
+  result:&amp;:list:_elem<span class="Special"> &lt;- </span>new <span class="Delimiter">{</span>(list _elem): type<span class="Delimiter">}</span>
+  *result<span class="Special"> &lt;- </span>merge x, l
+  <span class="muControl">reply</span> result
 ]
 
 <span class="muRecipe">def</span> first in:&amp;:list:_elem<span class="muRecipe"> -&gt; </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:&amp;:list:_elem temp:&amp;:list:_elem<span class="muRecipe"> -&gt; </span>result:&amp;:list:_elem [
+<span class="muRecipe">def</span> reverse list:&amp;:list:_elem temp:&amp;:list:_elem/contained-in:result<span class="muRecipe"> -&gt; </span>result:&amp;:list:_elem [
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>
   <span class="muControl">reply-unless</span> list, temp