about summary refs log tree commit diff stats
path: root/html/061text.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/061text.mu.html')
-rw-r--r--html/061text.mu.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/html/061text.mu.html b/html/061text.mu.html
index 0a5b7a4e..bc269d39 100644
--- a/html/061text.mu.html
+++ b/html/061text.mu.html
@@ -185,12 +185,12 @@ if ('onhashchange' in window) {
 <span id="L123" class="LineNr"> 123 </span>]
 <span id="L124" class="LineNr"> 124 </span>
 <span id="L125" class="LineNr"> 125 </span><span class="Comment"># A new type to help incrementally construct texts.</span>
-<span id="L126" class="LineNr"> 126 </span><span class="muData">container</span> buffer:_elem [
+<span id="L126" class="LineNr"> 126 </span><span class="muData">container</span> <a href='061text.mu.html#L126'>buffer</a>:_elem [
 <span id="L127" class="LineNr"> 127 </span>  length:num
 <span id="L128" class="LineNr"> 128 </span>  data:&amp;:@:_elem
 <span id="L129" class="LineNr"> 129 </span>]
 <span id="L130" class="LineNr"> 130 </span>
-<span id="L131" class="LineNr"> 131 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L131'>new-buffer</a> <a href='075channel.mu.html#L379'>capacity</a>:num<span class="muRecipe"> -&gt; </span>result:&amp;:buffer:_elem [
+<span id="L131" class="LineNr"> 131 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L131'>new-buffer</a> <a href='075channel.mu.html#L379'>capacity</a>:num<span class="muRecipe"> -&gt; </span>result:&amp;:<a href='061text.mu.html#L126'>buffer</a>:_elem [
 <span id="L132" class="LineNr"> 132 </span>  <span class="Constant">local-scope</span>
 <span id="L133" class="LineNr"> 133 </span>  <span class="Constant">load-ingredients</span>
 <span id="L134" class="LineNr"> 134 </span>  result <span class="Special">&lt;-</span> new <span class="Delimiter">{</span>(buffer _elem): type<span class="Delimiter">}</span>
@@ -205,7 +205,7 @@ if ('onhashchange' in window) {
 <span id="L143" class="LineNr"> 143 </span>  <span class="muControl">return</span> result
 <span id="L144" class="LineNr"> 144 </span>]
 <span id="L145" class="LineNr"> 145 </span>
-<span id="L146" class="LineNr"> 146 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L146'>grow-buffer</a> buf:&amp;:buffer:_elem<span class="muRecipe"> -&gt; </span>buf:&amp;:buffer:_elem [
+<span id="L146" class="LineNr"> 146 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L146'>grow-buffer</a> buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:_elem<span class="muRecipe"> -&gt; </span>buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:_elem [
 <span id="L147" class="LineNr"> 147 </span>  <span class="Constant">local-scope</span>
 <span id="L148" class="LineNr"> 148 </span>  <span class="Constant">load-ingredients</span>
 <span id="L149" class="LineNr"> 149 </span>  <span class="Comment"># double buffer size</span>
@@ -226,7 +226,7 @@ if ('onhashchange' in window) {
 <span id="L164" class="LineNr"> 164 </span>  <span class="Delimiter">}</span>
 <span id="L165" class="LineNr"> 165 </span>]
 <span id="L166" class="LineNr"> 166 </span>
-<span id="L167" class="LineNr"> 167 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L167'>buffer-full?</a> in:&amp;:buffer:_elem<span class="muRecipe"> -&gt; </span>result:bool [
+<span id="L167" class="LineNr"> 167 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L167'>buffer-full?</a> in:&amp;:<a href='061text.mu.html#L126'>buffer</a>:_elem<span class="muRecipe"> -&gt; </span>result:bool [
 <span id="L168" class="LineNr"> 168 </span>  <span class="Constant">local-scope</span>
 <span id="L169" class="LineNr"> 169 </span>  <span class="Constant">load-ingredients</span>
 <span id="L170" class="LineNr"> 170 </span>  len:num <span class="Special">&lt;-</span> get *in, <span class="Constant">length:offset</span>
@@ -236,7 +236,7 @@ if ('onhashchange' in window) {
 <span id="L174" class="LineNr"> 174 </span>]
 <span id="L175" class="LineNr"> 175 </span>
 <span id="L176" class="LineNr"> 176 </span><span class="Comment"># most broadly applicable definition of append to a buffer: just call to-text</span>
-<span id="L177" class="LineNr"> 177 </span><span class="muRecipe">def</span> append buf:&amp;:buffer:char, x:_elem<span class="muRecipe"> -&gt; </span>buf:&amp;:buffer:char [
+<span id="L177" class="LineNr"> 177 </span><span class="muRecipe">def</span> append buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char, x:_elem<span class="muRecipe"> -&gt; </span>buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char [
 <span id="L178" class="LineNr"> 178 </span>  <span class="Constant">local-scope</span>
 <span id="L179" class="LineNr"> 179 </span>  <span class="Constant">load-ingredients</span>
 <span id="L180" class="LineNr"> 180 </span>  text:text <span class="Special">&lt;-</span> to-text x
@@ -252,7 +252,7 @@ if ('onhashchange' in window) {
 <span id="L190" class="LineNr"> 190 </span>  <span class="Delimiter">}</span>
 <span id="L191" class="LineNr"> 191 </span>]
 <span id="L192" class="LineNr"> 192 </span>
-<span id="L193" class="LineNr"> 193 </span><span class="muRecipe">def</span> append buf:&amp;:buffer:char, c:char<span class="muRecipe"> -&gt; </span>buf:&amp;:buffer:char [
+<span id="L193" class="LineNr"> 193 </span><span class="muRecipe">def</span> append buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char, c:char<span class="muRecipe"> -&gt; </span>buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char [
 <span id="L194" class="LineNr"> 194 </span>  <span class="Constant">local-scope</span>
 <span id="L195" class="LineNr"> 195 </span>  <span class="Constant">load-ingredients</span>
 <span id="L196" class="LineNr"> 196 </span>  len:num <span class="Special">&lt;-</span> get *buf, <span class="Constant">length:offset</span>
@@ -278,7 +278,7 @@ if ('onhashchange' in window) {
 <span id="L216" class="LineNr"> 216 </span>  *buf <span class="Special">&lt;-</span> put *buf, <span class="Constant">length:offset</span>, len
 <span id="L217" class="LineNr"> 217 </span>]
 <span id="L218" class="LineNr"> 218 </span>
-<span id="L219" class="LineNr"> 219 </span><span class="muRecipe">def</span> append buf:&amp;:buffer:char, t:text<span class="muRecipe"> -&gt; </span>buf:&amp;:buffer:char [
+<span id="L219" class="LineNr"> 219 </span><span class="muRecipe">def</span> append buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char, t:text<span class="muRecipe"> -&gt; </span>buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char [
 <span id="L220" class="LineNr"> 220 </span>  <span class="Constant">local-scope</span>
 <span id="L221" class="LineNr"> 221 </span>  <span class="Constant">load-ingredients</span>
 <span id="L222" class="LineNr"> 222 </span>  len:num <span class="Special">&lt;-</span> length *t
@@ -295,7 +295,7 @@ if ('onhashchange' in window) {
 <span id="L233" class="LineNr"> 233 </span>
 <span id="L234" class="LineNr"> 234 </span><span class="muScenario">scenario</span> append-to-empty-buffer [
 <span id="L235" class="LineNr"> 235 </span>  <span class="Constant">local-scope</span>
-<span id="L236" class="LineNr"> 236 </span>  x:&amp;:buffer:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
+<span id="L236" class="LineNr"> 236 </span>  x:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
 <span id="L237" class="LineNr"> 237 </span>  run [
 <span id="L238" class="LineNr"> 238 </span>  <span class="Conceal">¦</span> c:char <span class="Special">&lt;-</span> copy <span class="Constant">97/a</span>
 <span id="L239" class="LineNr"> 239 </span>  <span class="Conceal">¦</span> x <span class="Special">&lt;-</span> append x, c
@@ -313,7 +313,7 @@ if ('onhashchange' in window) {
 <span id="L251" class="LineNr"> 251 </span>
 <span id="L252" class="LineNr"> 252 </span><span class="muScenario">scenario</span> append-to-buffer [
 <span id="L253" class="LineNr"> 253 </span>  <span class="Constant">local-scope</span>
-<span id="L254" class="LineNr"> 254 </span>  x:&amp;:buffer:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
+<span id="L254" class="LineNr"> 254 </span>  x:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
 <span id="L255" class="LineNr"> 255 </span>  c:char <span class="Special">&lt;-</span> copy <span class="Constant">97/a</span>
 <span id="L256" class="LineNr"> 256 </span>  x <span class="Special">&lt;-</span> append x, c
 <span id="L257" class="LineNr"> 257 </span>  run [
@@ -335,7 +335,7 @@ if ('onhashchange' in window) {
 <span id="L273" class="LineNr"> 273 </span>
 <span id="L274" class="LineNr"> 274 </span><span class="muScenario">scenario</span> append-grows-buffer [
 <span id="L275" class="LineNr"> 275 </span>  <span class="Constant">local-scope</span>
-<span id="L276" class="LineNr"> 276 </span>  x:&amp;:buffer:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 3</span>
+<span id="L276" class="LineNr"> 276 </span>  x:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 3</span>
 <span id="L277" class="LineNr"> 277 </span>  s1:text <span class="Special">&lt;-</span> get *x, <span class="Constant">data:offset</span>
 <span id="L278" class="LineNr"> 278 </span>  x <span class="Special">&lt;-</span> append x, <span class="Constant">[abc]</span>  <span class="Comment"># buffer is now full</span>
 <span id="L279" class="LineNr"> 279 </span>  s2:text <span class="Special">&lt;-</span> get *x, <span class="Constant">data:offset</span>
@@ -372,7 +372,7 @@ if ('onhashchange' in window) {
 <span id="L310" class="LineNr"> 310 </span>
 <span id="L311" class="LineNr"> 311 </span><span class="muScenario">scenario</span> buffer-append-handles-backspace [
 <span id="L312" class="LineNr"> 312 </span>  <span class="Constant">local-scope</span>
-<span id="L313" class="LineNr"> 313 </span>  x:&amp;:buffer:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
+<span id="L313" class="LineNr"> 313 </span>  x:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a>
 <span id="L314" class="LineNr"> 314 </span>  x <span class="Special">&lt;-</span> append x, <span class="Constant">[ab]</span>
 <span id="L315" class="LineNr"> 315 </span>  run [
 <span id="L316" class="LineNr"> 316 </span>  <span class="Conceal">¦</span> c:char <span class="Special">&lt;-</span> copy <span class="Constant">8/backspace</span>
@@ -387,7 +387,7 @@ if ('onhashchange' in window) {
 <span id="L325" class="LineNr"> 325 </span>  ]
 <span id="L326" class="LineNr"> 326 </span>]
 <span id="L327" class="LineNr"> 327 </span>
-<span id="L328" class="LineNr"> 328 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L328'>buffer-to-array</a> in:&amp;:buffer:_elem<span class="muRecipe"> -&gt; </span>result:&amp;:@:_elem [
+<span id="L328" class="LineNr"> 328 </span><span class="muRecipe">def</span> <a href='061text.mu.html#L328'>buffer-to-array</a> in:&amp;:<a href='061text.mu.html#L126'>buffer</a>:_elem<span class="muRecipe"> -&gt; </span>result:&amp;:@:_elem [
 <span id="L329" class="LineNr"> 329 </span>  <span class="Constant">local-scope</span>
 <span id="L330" class="LineNr"> 330 </span>  <span class="Constant">load-ingredients</span>
 <span id="L331" class="LineNr"> 331 </span>  <span class="Delimiter">{</span>
@@ -421,7 +421,7 @@ if ('onhashchange' in window) {
 <span id="L359" class="LineNr"> 359 </span><span class="muRecipe">def</span> append first:text<span class="muRecipe"> -&gt; </span>result:text [
 <span id="L360" class="LineNr"> 360 </span>  <span class="Constant">local-scope</span>
 <span id="L361" class="LineNr"> 361 </span>  <span class="Constant">load-ingredients</span>
-<span id="L362" class="LineNr"> 362 </span>  buf:&amp;:buffer:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 30</span>
+<span id="L362" class="LineNr"> 362 </span>  buf:&amp;:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 30</span>
 <span id="L363" class="LineNr"> 363 </span>  <span class="Comment"># append first ingredient</span>
 <span id="L364" class="LineNr"> 364 </span>  <span class="Delimiter">{</span>
 <span id="L365" class="LineNr"> 365 </span>  <span class="Conceal">¦</span> <span class="muControl">break-unless</span> first