about summary refs log tree commit diff stats
path: root/html/edit/005-sandbox.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-09-25 21:20:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-09-25 21:20:49 -0700
commitc0d61295ed3575cfea7d2a22d81bae93c6009308 (patch)
tree42fc40d4ce6da540c9fa75d5e74ec75e5c313a7b /html/edit/005-sandbox.mu.html
parent409237204368205a06e2b82fcab26b0a290d7412 (diff)
downloadmu-c0d61295ed3575cfea7d2a22d81bae93c6009308.tar.gz
4008
Allow list `push` operation to save result in a new list rather than
mutate the existing list.
Diffstat (limited to 'html/edit/005-sandbox.mu.html')
-rw-r--r--html/edit/005-sandbox.mu.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html
index 5272c8bd..1c6ab31c 100644
--- a/html/edit/005-sandbox.mu.html
+++ b/html/edit/005-sandbox.mu.html
@@ -541,7 +541,7 @@ if ('onhashchange' in window) {
 <span id="L478" class="LineNr"> 478 </span>  <span class="Comment"># read all scenarios, pushing them to end of a list of scenarios</span>
 <span id="L479" class="LineNr"> 479 </span>  idx:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
 <span id="L480" class="LineNr"> 480 </span>  curr:&amp;:sandbox <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
-<span id="L481" class="LineNr"> 481 </span>  <a href='../065duplex_list.mu.html#L36'>prev</a>:&amp;:sandbox <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
+<span id="L481" class="LineNr"> 481 </span>  <a href='../065duplex_list.mu.html#L32'>prev</a>:&amp;:sandbox <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
 <span id="L482" class="LineNr"> 482 </span>  <span class="Delimiter">{</span>
 <span id="L483" class="LineNr"> 483 </span>  <span class="Conceal">¦</span> filename:text <span class="Special">&lt;-</span> append <span class="Constant">[lesson/]</span>, idx
 <span id="L484" class="LineNr"> 484 </span>  <span class="Conceal">¦</span> contents:text <span class="Special">&lt;-</span> <a href='../088file.mu.html#L38'>slurp</a> <a href='../088file.mu.html#L11'>resources</a>, filename
@@ -560,7 +560,7 @@ if ('onhashchange' in window) {
 <span id="L497" class="LineNr"> 497 </span>  <span class="Conceal">¦</span> <span class="Conceal">¦</span> *prev <span class="Special">&lt;-</span> put *prev, <span class="Constant">next-sandbox:offset</span>, curr
 <span id="L498" class="LineNr"> 498 </span>  <span class="Conceal">¦</span> <span class="Delimiter">}</span>
 <span id="L499" class="LineNr"> 499 </span>  <span class="Conceal">¦</span> idx <span class="Special">&lt;-</span> add idx,<span class="Constant"> 1</span>
-<span id="L500" class="LineNr"> 500 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L36'>prev</a> <span class="Special">&lt;-</span> copy curr
+<span id="L500" class="LineNr"> 500 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special">&lt;-</span> copy curr
 <span id="L501" class="LineNr"> 501 </span>  <span class="Conceal">¦</span> <span class="muControl">loop</span>
 <span id="L502" class="LineNr"> 502 </span>  <span class="Delimiter">}</span>
 <span id="L503" class="LineNr"> 503 </span>  <span class="Comment"># update sandbox count</span>
@@ -750,13 +750,13 @@ if ('onhashchange' in window) {
 <span id="L687" class="LineNr"> 687 </span>  curr:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
 <span id="L688" class="LineNr"> 688 </span>  <span class="Comment"># skip § sentinel</span>
 <span id="L689" class="LineNr"> 689 </span>  assert curr, <span class="Constant">[editor without data is illegal; must have at least a sentinel]</span>
-<span id="L690" class="LineNr"> 690 </span>  curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L690" class="LineNr"> 690 </span>  curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr
 <span id="L691" class="LineNr"> 691 </span>  <span class="muControl">return-unless</span> curr,<span class="Constant"> 0</span>
 <span id="L692" class="LineNr"> 692 </span>  <span class="Delimiter">{</span>
 <span id="L693" class="LineNr"> 693 </span>  <span class="Conceal">¦</span> <span class="muControl">break-unless</span> curr
 <span id="L694" class="LineNr"> 694 </span>  <span class="Conceal">¦</span> c:char <span class="Special">&lt;-</span> get *curr, <span class="Constant">value:offset</span>
 <span id="L695" class="LineNr"> 695 </span>  <span class="Conceal">¦</span> buf <span class="Special">&lt;-</span> append buf, c
-<span id="L696" class="LineNr"> 696 </span>  <span class="Conceal">¦</span> curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L29'>next</a> curr
+<span id="L696" class="LineNr"> 696 </span>  <span class="Conceal">¦</span> curr <span class="Special">&lt;-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr
 <span id="L697" class="LineNr"> 697 </span>  <span class="Conceal">¦</span> <span class="muControl">loop</span>
 <span id="L698" class="LineNr"> 698 </span>  <span class="Delimiter">}</span>
 <span id="L699" class="LineNr"> 699 </span>  result <span class="Special">&lt;-</span> <a href='../061text.mu.html#L338'>buffer-to-array</a> buf
@@ -1010,13 +1010,13 @@ if ('onhashchange' in window) {
 <span id="L947" class="LineNr"> 947 </span>  <span class="Constant">load-ingredients</span>
 <span id="L948" class="LineNr"> 948 </span>  curr:&amp;:sandbox <span class="Special">&lt;-</span> get *env, <span class="Constant">sandbox:offset</span>
 <span id="L949" class="LineNr"> 949 </span>  <span class="muControl">return-unless</span> curr, <span class="Constant">0/nil</span>
-<span id="L950" class="LineNr"> 950 </span>  <a href='../065duplex_list.mu.html#L29'>next</a>:&amp;:sandbox <span class="Special">&lt;-</span> get *curr, <span class="Constant">next-sandbox:offset</span>
+<span id="L950" class="LineNr"> 950 </span>  <a href='../065duplex_list.mu.html#L25'>next</a>:&amp;:sandbox <span class="Special">&lt;-</span> get *curr, <span class="Constant">next-sandbox:offset</span>
 <span id="L951" class="LineNr"> 951 </span>  <span class="Delimiter">{</span>
-<span id="L952" class="LineNr"> 952 </span>  <span class="Conceal">¦</span> <span class="muControl">return-unless</span> <a href='../065duplex_list.mu.html#L29'>next</a>, <span class="Constant">0/nil</span>
-<span id="L953" class="LineNr"> 953 </span>  <span class="Conceal">¦</span> found?:bool <span class="Special">&lt;-</span> equal <a href='../065duplex_list.mu.html#L29'>next</a>, in
+<span id="L952" class="LineNr"> 952 </span>  <span class="Conceal">¦</span> <span class="muControl">return-unless</span> <a href='../065duplex_list.mu.html#L25'>next</a>, <span class="Constant">0/nil</span>
+<span id="L953" class="LineNr"> 953 </span>  <span class="Conceal">¦</span> found?:bool <span class="Special">&lt;-</span> equal <a href='../065duplex_list.mu.html#L25'>next</a>, in
 <span id="L954" class="LineNr"> 954 </span>  <span class="Conceal">¦</span> <span class="muControl">break-if</span> found?
-<span id="L955" class="LineNr"> 955 </span>  <span class="Conceal">¦</span> curr <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L29'>next</a>
-<span id="L956" class="LineNr"> 956 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L29'>next</a> <span class="Special">&lt;-</span> get *curr, <span class="Constant">next-sandbox:offset</span>
+<span id="L955" class="LineNr"> 955 </span>  <span class="Conceal">¦</span> curr <span class="Special">&lt;-</span> copy <a href='../065duplex_list.mu.html#L25'>next</a>
+<span id="L956" class="LineNr"> 956 </span>  <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L25'>next</a> <span class="Special">&lt;-</span> get *curr, <span class="Constant">next-sandbox:offset</span>
 <span id="L957" class="LineNr"> 957 </span>  <span class="Conceal">¦</span> <span class="muControl">loop</span>
 <span id="L958" class="LineNr"> 958 </span>  <span class="Delimiter">}</span>
 <span id="L959" class="LineNr"> 959 </span>  <span class="muControl">return</span> curr