diff options
Diffstat (limited to 'html/064list.mu.html')
-rw-r--r-- | html/064list.mu.html | 257 |
1 files changed, 129 insertions, 128 deletions
diff --git a/html/064list.mu.html b/html/064list.mu.html index 417280f5..e0cd961c 100644 --- a/html/064list.mu.html +++ b/html/064list.mu.html @@ -15,15 +15,16 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color a { text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } -.muData { color: #ffff00; } -.muControl { color: #c0a020; } +.muRecipe { color: #ff8700; } +.muScenario { color: #00af00; } .Special { color: #c00000; } +.Conceal { color: #4e4e4e; } .Delimiter { color: #800080; } .Comment { color: #9090ff; } .Constant { color: #00a0a0; } .LineNr { color: #444444; } -.muRecipe { color: #ff8700; } -.muScenario { color: #00af00; } +.muControl { color: #c0a020; } +.muData { color: #ffff00; } --> </style> @@ -90,22 +91,22 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr"> 30 </span> <span id="L31" class="LineNr"> 31 </span><span class="muScenario">scenario</span> list-handling [ <span id="L32" class="LineNr"> 32 </span> run [ -<span id="L33" class="LineNr"> 33 </span> <span class="Constant">local-scope</span> -<span id="L34" class="LineNr"> 34 </span> x:&:list:num <span class="Special"><-</span> push<span class="Constant"> 3</span>,<span class="Constant"> 0</span> -<span id="L35" class="LineNr"> 35 </span> x <span class="Special"><-</span> push<span class="Constant"> 4</span>, x -<span id="L36" class="LineNr"> 36 </span> x <span class="Special"><-</span> push<span class="Constant"> 5</span>, x -<span id="L37" class="LineNr"> 37 </span> 10:num/<span class="Special">raw</span> <span class="Special"><-</span> first x -<span id="L38" class="LineNr"> 38 </span> x <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x -<span id="L39" class="LineNr"> 39 </span> 11:num/<span class="Special">raw</span> <span class="Special"><-</span> first x -<span id="L40" class="LineNr"> 40 </span> x <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x -<span id="L41" class="LineNr"> 41 </span> 12:num/<span class="Special">raw</span> <span class="Special"><-</span> first x -<span id="L42" class="LineNr"> 42 </span> 20:&:list:num/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x +<span id="L33" class="LineNr"> 33 </span> <span class="Conceal">¦</span> <span class="Constant">local-scope</span> +<span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> x:&:list:num <span class="Special"><-</span> push<span class="Constant"> 3</span>,<span class="Constant"> 0</span> +<span id="L35" class="LineNr"> 35 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> push<span class="Constant"> 4</span>, x +<span id="L36" class="LineNr"> 36 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> push<span class="Constant"> 5</span>, x +<span id="L37" class="LineNr"> 37 </span> <span class="Conceal">¦</span> 10:num/<span class="Special">raw</span> <span class="Special"><-</span> first x +<span id="L38" class="LineNr"> 38 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x +<span id="L39" class="LineNr"> 39 </span> <span class="Conceal">¦</span> 11:num/<span class="Special">raw</span> <span class="Special"><-</span> first x +<span id="L40" class="LineNr"> 40 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x +<span id="L41" class="LineNr"> 41 </span> <span class="Conceal">¦</span> 12:num/<span class="Special">raw</span> <span class="Special"><-</span> first x +<span id="L42" class="LineNr"> 42 </span> <span class="Conceal">¦</span> 20:&:list:num/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> x <span id="L43" class="LineNr"> 43 </span> ] <span id="L44" class="LineNr"> 44 </span> memory-should-contain [ -<span id="L45" class="LineNr"> 45 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> -<span id="L46" class="LineNr"> 46 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> -<span id="L47" class="LineNr"> 47 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> -<span id="L48" class="LineNr"> 48 </span> <span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># nothing left</span> +<span id="L45" class="LineNr"> 45 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> +<span id="L46" class="LineNr"> 46 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> +<span id="L47" class="LineNr"> 47 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L48" class="LineNr"> 48 </span> <span class="Conceal">¦</span><span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># nothing left</span> <span id="L49" class="LineNr"> 49 </span> ] <span id="L50" class="LineNr"> 50 </span>] <span id="L51" class="LineNr"> 51 </span> @@ -135,23 +136,23 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L76" class="LineNr"> 76 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L77" class="LineNr"> 77 </span> run [ -<span id="L78" class="LineNr"> 78 </span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># inside list</span> -<span id="L79" class="LineNr"> 79 </span> list2 <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list2 -<span id="L80" class="LineNr"> 80 </span> <span class="Comment"># check structure</span> -<span id="L81" class="LineNr"> 81 </span> list2 <span class="Special"><-</span> copy list -<span id="L82" class="LineNr"> 82 </span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L83" class="LineNr"> 83 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L84" class="LineNr"> 84 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L85" class="LineNr"> 85 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L86" class="LineNr"> 86 </span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L87" class="LineNr"> 87 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L88" class="LineNr"> 88 </span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L78" class="LineNr"> 78 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># inside list</span> +<span id="L79" class="LineNr"> 79 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list2 +<span id="L80" class="LineNr"> 80 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure</span> +<span id="L81" class="LineNr"> 81 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> copy list +<span id="L82" class="LineNr"> 82 </span> <span class="Conceal">¦</span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L83" class="LineNr"> 83 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L84" class="LineNr"> 84 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L85" class="LineNr"> 85 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L86" class="LineNr"> 86 </span> <span class="Conceal">¦</span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L87" class="LineNr"> 87 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L88" class="LineNr"> 88 </span> <span class="Conceal">¦</span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 <span id="L89" class="LineNr"> 89 </span> ] <span id="L90" class="LineNr"> 90 </span> memory-should-contain [ -<span id="L91" class="LineNr"> 91 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> -<span id="L92" class="LineNr"> 92 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> -<span id="L93" class="LineNr"> 93 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> -<span id="L94" class="LineNr"> 94 </span> <span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L91" class="LineNr"> 91 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> +<span id="L92" class="LineNr"> 92 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> +<span id="L93" class="LineNr"> 93 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> +<span id="L94" class="LineNr"> 94 </span> <span class="Conceal">¦</span><span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 3</span> <span id="L95" class="LineNr"> 95 </span> ] <span id="L96" class="LineNr"> 96 </span>] <span id="L97" class="LineNr"> 97 </span> @@ -161,24 +162,24 @@ if ('onhashchange' in window) { <span id="L101" class="LineNr">101 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L102" class="LineNr">102 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L103" class="LineNr">103 </span> run [ -<span id="L104" class="LineNr">104 </span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># inside list</span> -<span id="L105" class="LineNr">105 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 <span class="Comment"># now at end of list</span> -<span id="L106" class="LineNr">106 </span> list2 <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list2 -<span id="L107" class="LineNr">107 </span> <span class="Comment"># check structure like before</span> -<span id="L108" class="LineNr">108 </span> list2 <span class="Special"><-</span> copy list -<span id="L109" class="LineNr">109 </span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L110" class="LineNr">110 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L111" class="LineNr">111 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L112" class="LineNr">112 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L113" class="LineNr">113 </span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L114" class="LineNr">114 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L115" class="LineNr">115 </span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L104" class="LineNr">104 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># inside list</span> +<span id="L105" class="LineNr">105 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 <span class="Comment"># now at end of list</span> +<span id="L106" class="LineNr">106 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list2 +<span id="L107" class="LineNr">107 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure like before</span> +<span id="L108" class="LineNr">108 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> copy list +<span id="L109" class="LineNr">109 </span> <span class="Conceal">¦</span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L110" class="LineNr">110 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L111" class="LineNr">111 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L113" class="LineNr">113 </span> <span class="Conceal">¦</span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L114" class="LineNr">114 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L115" class="LineNr">115 </span> <span class="Conceal">¦</span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 <span id="L116" class="LineNr">116 </span> ] <span id="L117" class="LineNr">117 </span> memory-should-contain [ -<span id="L118" class="LineNr">118 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> -<span id="L119" class="LineNr">119 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> -<span id="L120" class="LineNr">120 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> -<span id="L121" class="LineNr">121 </span> <span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> +<span id="L118" class="LineNr">118 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> +<span id="L119" class="LineNr">119 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 4</span> +<span id="L120" class="LineNr">120 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L121" class="LineNr">121 </span> <span class="Conceal">¦</span><span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> <span id="L122" class="LineNr">122 </span> ] <span id="L123" class="LineNr">123 </span>] <span id="L124" class="LineNr">124 </span> @@ -188,22 +189,22 @@ if ('onhashchange' in window) { <span id="L128" class="LineNr">128 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L129" class="LineNr">129 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L130" class="LineNr">130 </span> run [ -<span id="L131" class="LineNr">131 </span> list <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list -<span id="L132" class="LineNr">132 </span> <span class="Comment"># check structure like before</span> -<span id="L133" class="LineNr">133 </span> list2:&:list:char <span class="Special"><-</span> copy list -<span id="L134" class="LineNr">134 </span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L135" class="LineNr">135 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L136" class="LineNr">136 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L137" class="LineNr">137 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L138" class="LineNr">138 </span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L139" class="LineNr">139 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L140" class="LineNr">140 </span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L131" class="LineNr">131 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> insert<span class="Constant"> 6</span>, list +<span id="L132" class="LineNr">132 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure like before</span> +<span id="L133" class="LineNr">133 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> copy list +<span id="L134" class="LineNr">134 </span> <span class="Conceal">¦</span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L135" class="LineNr">135 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L136" class="LineNr">136 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L137" class="LineNr">137 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L138" class="LineNr">138 </span> <span class="Conceal">¦</span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L139" class="LineNr">139 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L140" class="LineNr">140 </span> <span class="Conceal">¦</span> 13:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 <span id="L141" class="LineNr">141 </span> ] <span id="L142" class="LineNr">142 </span> memory-should-contain [ -<span id="L143" class="LineNr">143 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> -<span id="L144" class="LineNr">144 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> -<span id="L145" class="LineNr">145 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 4</span> -<span id="L146" class="LineNr">146 </span> <span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L143" class="LineNr">143 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next</span> +<span id="L144" class="LineNr">144 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 6</span> <span class="Comment"># inserted element</span> +<span id="L145" class="LineNr">145 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 4</span> +<span id="L146" class="LineNr">146 </span> <span class="Conceal">¦</span><span class="Constant"> 13</span> <span class="Special"><-</span><span class="Constant"> 3</span> <span id="L147" class="LineNr">147 </span> ] <span id="L148" class="LineNr">148 </span>] <span id="L149" class="LineNr">149 </span> @@ -226,11 +227,11 @@ if ('onhashchange' in window) { <span id="L166" class="LineNr">166 </span> prev-node:&:list:_elem <span class="Special"><-</span> copy in <span id="L167" class="LineNr">167 </span> curr:&:list:_elem <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> prev-node <span id="L168" class="LineNr">168 </span> <span class="Delimiter">{</span> -<span id="L169" class="LineNr">169 </span> <span class="muControl">return-unless</span> curr -<span id="L170" class="LineNr">170 </span> found?:bool <span class="Special"><-</span> equal curr, x -<span id="L171" class="LineNr">171 </span> <span class="muControl">break-if</span> found? -<span id="L172" class="LineNr">172 </span> prev-node <span class="Special"><-</span> copy curr -<span id="L173" class="LineNr">173 </span> curr <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> curr +<span id="L169" class="LineNr">169 </span> <span class="Conceal">¦</span> <span class="muControl">return-unless</span> curr +<span id="L170" class="LineNr">170 </span> <span class="Conceal">¦</span> found?:bool <span class="Special"><-</span> equal curr, x +<span id="L171" class="LineNr">171 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> found? +<span id="L172" class="LineNr">172 </span> <span class="Conceal">¦</span> prev-node <span class="Special"><-</span> copy curr +<span id="L173" class="LineNr">173 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> curr <span id="L174" class="LineNr">174 </span> <span class="Delimiter">}</span> <span id="L175" class="LineNr">175 </span> <span class="Comment"># set its next pointer to skip 'x'</span> <span id="L176" class="LineNr">176 </span> *prev-node <span class="Special"><-</span> put *prev-node, <span class="Constant"><a href='065duplex_list.mu.html#L29'>next</a>:offset</span>, next-node @@ -242,21 +243,21 @@ if ('onhashchange' in window) { <span id="L182" class="LineNr">182 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L183" class="LineNr">183 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L184" class="LineNr">184 </span> run [ -<span id="L185" class="LineNr">185 </span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># second element</span> -<span id="L186" class="LineNr">186 </span> list <span class="Special"><-</span> remove list2, list -<span id="L187" class="LineNr">187 </span> 10:bool/<span class="Special">raw</span> <span class="Special"><-</span> equal list2,<span class="Constant"> 0</span> -<span id="L188" class="LineNr">188 </span> <span class="Comment"># check structure like before</span> -<span id="L189" class="LineNr">189 </span> list2 <span class="Special"><-</span> copy list -<span id="L190" class="LineNr">190 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L191" class="LineNr">191 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L192" class="LineNr">192 </span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L193" class="LineNr">193 </span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L185" class="LineNr">185 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list <span class="Comment"># second element</span> +<span id="L186" class="LineNr">186 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> remove list2, list +<span id="L187" class="LineNr">187 </span> <span class="Conceal">¦</span> 10:bool/<span class="Special">raw</span> <span class="Special"><-</span> equal list2,<span class="Constant"> 0</span> +<span id="L188" class="LineNr">188 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure like before</span> +<span id="L189" class="LineNr">189 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> copy list +<span id="L190" class="LineNr">190 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L191" class="LineNr">191 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L192" class="LineNr">192 </span> <span class="Conceal">¦</span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L193" class="LineNr">193 </span> <span class="Conceal">¦</span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 <span id="L194" class="LineNr">194 </span> ] <span id="L195" class="LineNr">195 </span> memory-should-contain [ -<span id="L196" class="LineNr">196 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># remove returned non-null</span> -<span id="L197" class="LineNr">197 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next, skipping deleted element</span> -<span id="L198" class="LineNr">198 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> -<span id="L199" class="LineNr">199 </span> <span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> +<span id="L196" class="LineNr">196 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># remove returned non-null</span> +<span id="L197" class="LineNr">197 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next, skipping deleted element</span> +<span id="L198" class="LineNr">198 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L199" class="LineNr">199 </span> <span class="Conceal">¦</span><span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> <span id="L200" class="LineNr">200 </span> ] <span id="L201" class="LineNr">201 </span>] <span id="L202" class="LineNr">202 </span> @@ -266,18 +267,18 @@ if ('onhashchange' in window) { <span id="L206" class="LineNr">206 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L207" class="LineNr">207 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L208" class="LineNr">208 </span> run [ -<span id="L209" class="LineNr">209 </span> list <span class="Special"><-</span> remove list, list -<span id="L210" class="LineNr">210 </span> <span class="Comment"># check structure like before</span> -<span id="L211" class="LineNr">211 </span> list2:&:list:char <span class="Special"><-</span> copy list -<span id="L212" class="LineNr">212 </span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L213" class="LineNr">213 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L214" class="LineNr">214 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L215" class="LineNr">215 </span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L209" class="LineNr">209 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> remove list, list +<span id="L210" class="LineNr">210 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure like before</span> +<span id="L211" class="LineNr">211 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> copy list +<span id="L212" class="LineNr">212 </span> <span class="Conceal">¦</span> 10:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L213" class="LineNr">213 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L214" class="LineNr">214 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 <span id="L216" class="LineNr">216 </span> ] <span id="L217" class="LineNr">217 </span> memory-should-contain [ -<span id="L218" class="LineNr">218 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 4</span> <span class="Comment"># scanning next, skipping deleted element</span> -<span id="L219" class="LineNr">219 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 3</span> -<span id="L220" class="LineNr">220 </span> <span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> +<span id="L218" class="LineNr">218 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 4</span> <span class="Comment"># scanning next, skipping deleted element</span> +<span id="L219" class="LineNr">219 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 3</span> +<span id="L220" class="LineNr">220 </span> <span class="Conceal">¦</span><span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> <span id="L221" class="LineNr">221 </span> ] <span id="L222" class="LineNr">222 </span>] <span id="L223" class="LineNr">223 </span> @@ -287,23 +288,23 @@ if ('onhashchange' in window) { <span id="L227" class="LineNr">227 </span> list <span class="Special"><-</span> push<span class="Constant"> 4</span>, list <span id="L228" class="LineNr">228 </span> list <span class="Special"><-</span> push<span class="Constant"> 5</span>, list <span id="L229" class="LineNr">229 </span> run [ -<span id="L230" class="LineNr">230 </span> <span class="Comment"># delete last element</span> -<span id="L231" class="LineNr">231 </span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list -<span id="L232" class="LineNr">232 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L233" class="LineNr">233 </span> list <span class="Special"><-</span> remove list2, list -<span id="L234" class="LineNr">234 </span> 10:bool/<span class="Special">raw</span> <span class="Special"><-</span> equal list2,<span class="Constant"> 0</span> -<span id="L235" class="LineNr">235 </span> <span class="Comment"># check structure like before</span> -<span id="L236" class="LineNr">236 </span> list2 <span class="Special"><-</span> copy list -<span id="L237" class="LineNr">237 </span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L238" class="LineNr">238 </span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 -<span id="L239" class="LineNr">239 </span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 -<span id="L240" class="LineNr">240 </span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L230" class="LineNr">230 </span> <span class="Conceal">¦</span> <span class="Comment"># delete last element</span> +<span id="L231" class="LineNr">231 </span> <span class="Conceal">¦</span> list2:&:list:char <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list +<span id="L232" class="LineNr">232 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L233" class="LineNr">233 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> remove list2, list +<span id="L234" class="LineNr">234 </span> <span class="Conceal">¦</span> 10:bool/<span class="Special">raw</span> <span class="Special"><-</span> equal list2,<span class="Constant"> 0</span> +<span id="L235" class="LineNr">235 </span> <span class="Conceal">¦</span> <span class="Comment"># check structure like before</span> +<span id="L236" class="LineNr">236 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> copy list +<span id="L237" class="LineNr">237 </span> <span class="Conceal">¦</span> 11:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L238" class="LineNr">238 </span> <span class="Conceal">¦</span> list2 <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 +<span id="L239" class="LineNr">239 </span> <span class="Conceal">¦</span> 12:char/<span class="Special">raw</span> <span class="Special"><-</span> first list2 +<span id="L240" class="LineNr">240 </span> <span class="Conceal">¦</span> 20:&:list:char/<span class="Special">raw</span> <span class="Special"><-</span> <a href='064list.mu.html#L25'>rest</a> list2 <span id="L241" class="LineNr">241 </span> ] <span id="L242" class="LineNr">242 </span> memory-should-contain [ -<span id="L243" class="LineNr">243 </span> <span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># remove returned non-null</span> -<span id="L244" class="LineNr">244 </span> <span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next, skipping deleted element</span> -<span id="L245" class="LineNr">245 </span> <span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 4</span> -<span id="L246" class="LineNr">246 </span> <span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> +<span id="L243" class="LineNr">243 </span> <span class="Conceal">¦</span><span class="Constant"> 10</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># remove returned non-null</span> +<span id="L244" class="LineNr">244 </span> <span class="Conceal">¦</span><span class="Constant"> 11</span> <span class="Special"><-</span><span class="Constant"> 5</span> <span class="Comment"># scanning next, skipping deleted element</span> +<span id="L245" class="LineNr">245 </span> <span class="Conceal">¦</span><span class="Constant"> 12</span> <span class="Special"><-</span><span class="Constant"> 4</span> +<span id="L246" class="LineNr">246 </span> <span class="Conceal">¦</span><span class="Constant"> 20</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># no more elements</span> <span id="L247" class="LineNr">247 </span> ] <span id="L248" class="LineNr">248 </span>] <span id="L249" class="LineNr">249 </span> @@ -311,11 +312,11 @@ if ('onhashchange' in window) { <span id="L251" class="LineNr">251 </span> <span class="Constant">local-scope</span> <span id="L252" class="LineNr">252 </span> list:&:list:char <span class="Special"><-</span> push<span class="Constant"> 3</span>,<span class="Constant"> 0</span> <span id="L253" class="LineNr">253 </span> run [ -<span id="L254" class="LineNr">254 </span> list <span class="Special"><-</span> remove list, list -<span id="L255" class="LineNr">255 </span> 1:num/<span class="Special">raw</span> <span class="Special"><-</span> copy list +<span id="L254" class="LineNr">254 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> remove list, list +<span id="L255" class="LineNr">255 </span> <span class="Conceal">¦</span> 1:num/<span class="Special">raw</span> <span class="Special"><-</span> copy list <span id="L256" class="LineNr">256 </span> ] <span id="L257" class="LineNr">257 </span> memory-should-contain [ -<span id="L258" class="LineNr">258 </span> <span class="Constant"> 1</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># back to an empty list</span> +<span id="L258" class="LineNr">258 </span> <span class="Conceal">¦</span><span class="Constant"> 1</span> <span class="Special"><-</span><span class="Constant"> 0</span> <span class="Comment"># back to an empty list</span> <span id="L259" class="LineNr">259 </span> ] <span id="L260" class="LineNr">260 </span>] <span id="L261" class="LineNr">261 </span> @@ -337,13 +338,13 @@ if ('onhashchange' in window) { <span id="L277" class="LineNr">277 </span> list <span class="Special"><-</span> push<span class="Constant"> 2</span>, list <span id="L278" class="LineNr">278 </span> list <span class="Special"><-</span> push<span class="Constant"> 3</span>, list <span id="L279" class="LineNr">279 </span> run [ -<span id="L280" class="LineNr">280 </span> stash <span class="Constant">[list:]</span>, list -<span id="L281" class="LineNr">281 </span> list <span class="Special"><-</span> reverse list -<span id="L282" class="LineNr">282 </span> stash <span class="Constant">[reversed:]</span>, list +<span id="L280" class="LineNr">280 </span> <span class="Conceal">¦</span> stash <span class="Constant">[list:]</span>, list +<span id="L281" class="LineNr">281 </span> <span class="Conceal">¦</span> list <span class="Special"><-</span> reverse list +<span id="L282" class="LineNr">282 </span> <span class="Conceal">¦</span> stash <span class="Constant">[reversed:]</span>, list <span id="L283" class="LineNr">283 </span> ] <span id="L284" class="LineNr">284 </span> trace-should-contain [ -<span id="L285" class="LineNr">285 </span> app: list:<span class="Constant"> 3</span><span class="muRecipe"> -> </span>2<span class="muRecipe"> -> </span>1 -<span id="L286" class="LineNr">286 </span> app: reversed:<span class="Constant"> 1</span><span class="muRecipe"> -> </span>2<span class="muRecipe"> -> </span>3 +<span id="L285" class="LineNr">285 </span> <span class="Conceal">¦</span> app: list:<span class="Constant"> 3</span><span class="muRecipe"> -> </span>2<span class="muRecipe"> -> </span>1 +<span id="L286" class="LineNr">286 </span> <span class="Conceal">¦</span> app: reversed:<span class="Constant"> 1</span><span class="muRecipe"> -> </span>2<span class="muRecipe"> -> </span>3 <span id="L287" class="LineNr">287 </span> ] <span id="L288" class="LineNr">288 </span>] <span id="L289" class="LineNr">289 </span> @@ -368,9 +369,9 @@ if ('onhashchange' in window) { <span id="L308" class="LineNr">308 </span> <span class="Constant">local-scope</span> <span id="L309" class="LineNr">309 </span> <span class="Constant">load-ingredients</span> <span id="L310" class="LineNr">310 </span> <span class="Delimiter">{</span> -<span id="L311" class="LineNr">311 </span> <span class="muControl">break-if</span> in -<span id="L312" class="LineNr">312 </span> buf <span class="Special"><-</span> append buf, <span class="Constant">[[]</span>] -<span id="L313" class="LineNr">313 </span> <span class="muControl">return</span> +<span id="L311" class="LineNr">311 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> in +<span id="L312" class="LineNr">312 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> append buf, <span class="Constant">[[]</span>] +<span id="L313" class="LineNr">313 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span id="L314" class="LineNr">314 </span> <span class="Delimiter">}</span> <span id="L315" class="LineNr">315 </span> <span class="Comment"># append in.value to buf</span> <span id="L316" class="LineNr">316 </span> val:_elem <span class="Special"><-</span> get *in, <span class="Constant">value:offset</span> @@ -383,17 +384,17 @@ if ('onhashchange' in window) { <span id="L323" class="LineNr">323 </span> <span class="Comment"># and recurse</span> <span id="L324" class="LineNr">324 </span> remaining:num, optional-ingredient-found?:bool <span class="Special"><-</span> <span class="Constant">next-ingredient</span> <span id="L325" class="LineNr">325 </span> <span class="Delimiter">{</span> -<span id="L326" class="LineNr">326 </span> <span class="muControl">break-if</span> optional-ingredient-found? -<span id="L327" class="LineNr">327 </span> <span class="Comment"># unlimited recursion</span> -<span id="L328" class="LineNr">328 </span> buf <span class="Special"><-</span> <a href='064list.mu.html#L307'>to-buffer</a> <a href='065duplex_list.mu.html#L29'>next</a>, buf -<span id="L329" class="LineNr">329 </span> <span class="muControl">return</span> +<span id="L326" class="LineNr">326 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> optional-ingredient-found? +<span id="L327" class="LineNr">327 </span> <span class="Conceal">¦</span> <span class="Comment"># unlimited recursion</span> +<span id="L328" class="LineNr">328 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> <a href='064list.mu.html#L307'>to-buffer</a> <a href='065duplex_list.mu.html#L29'>next</a>, buf +<span id="L329" class="LineNr">329 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span id="L330" class="LineNr">330 </span> <span class="Delimiter">}</span> <span id="L331" class="LineNr">331 </span> <span class="Delimiter">{</span> -<span id="L332" class="LineNr">332 </span> <span class="muControl">break-unless</span> remaining -<span id="L333" class="LineNr">333 </span> <span class="Comment"># limited recursion</span> -<span id="L334" class="LineNr">334 </span> remaining <span class="Special"><-</span> subtract remaining,<span class="Constant"> 1</span> -<span id="L335" class="LineNr">335 </span> buf <span class="Special"><-</span> <a href='064list.mu.html#L307'>to-buffer</a> <a href='065duplex_list.mu.html#L29'>next</a>, buf, remaining -<span id="L336" class="LineNr">336 </span> <span class="muControl">return</span> +<span id="L332" class="LineNr">332 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> remaining +<span id="L333" class="LineNr">333 </span> <span class="Conceal">¦</span> <span class="Comment"># limited recursion</span> +<span id="L334" class="LineNr">334 </span> <span class="Conceal">¦</span> remaining <span class="Special"><-</span> subtract remaining,<span class="Constant"> 1</span> +<span id="L335" class="LineNr">335 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> <a href='064list.mu.html#L307'>to-buffer</a> <a href='065duplex_list.mu.html#L29'>next</a>, buf, remaining +<span id="L336" class="LineNr">336 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span id="L337" class="LineNr">337 </span> <span class="Delimiter">}</span> <span id="L338" class="LineNr">338 </span> <span class="Comment"># past recursion depth; insert ellipses and stop</span> <span id="L339" class="LineNr">339 </span> append buf, <span class="Constant">[...]</span> @@ -403,10 +404,10 @@ if ('onhashchange' in window) { <span id="L343" class="LineNr">343 </span> <span class="Constant">local-scope</span> <span id="L344" class="LineNr">344 </span> x:&:list:num <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L345" class="LineNr">345 </span> run [ -<span id="L346" class="LineNr">346 </span> stash x +<span id="L346" class="LineNr">346 </span> <span class="Conceal">¦</span> stash x <span id="L347" class="LineNr">347 </span> ] <span id="L348" class="LineNr">348 </span> trace-should-contain [ -<span id="L349" class="LineNr">349 </span> app: <span class="Constant">[]</span> +<span id="L349" class="LineNr">349 </span> <span class="Conceal">¦</span> app: <span class="Constant">[]</span> <span id="L350" class="LineNr">350 </span> ] <span id="L351" class="LineNr">351 </span>] </pre> |