diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-09-23 19:30:00 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-09-23 19:30:00 -0700 |
commit | 615f4a970a2fa5c91766ee585a7d531b083f4bff (patch) | |
tree | 5fce7848b60fe7e0dae089c94ca228ad74067ce1 /html/064list.mu.html | |
parent | 72cf994869e19f6bdc4678e1122f0082d07d4a11 (diff) | |
download | mu-615f4a970a2fa5c91766ee585a7d531b083f4bff.tar.gz |
4003
Diffstat (limited to 'html/064list.mu.html')
-rw-r--r-- | html/064list.mu.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/064list.mu.html b/html/064list.mu.html index 63c0d634..449c16e7 100644 --- a/html/064list.mu.html +++ b/html/064list.mu.html @@ -368,21 +368,21 @@ if ('onhashchange' in window) { <span id="L306" class="LineNr">306 </span><span class="muRecipe">def</span> to-text in:&:<a href='064list.mu.html#L6'>list</a>:_elem<span class="muRecipe"> -> </span>result:text [ <span id="L307" class="LineNr">307 </span> <span class="Constant">local-scope</span> <span id="L308" class="LineNr">308 </span> <span class="Constant">load-ingredients</span> -<span id="L309" class="LineNr">309 </span> buf:&:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special"><-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 80</span> +<span id="L309" class="LineNr">309 </span> buf:&:<a href='061text.mu.html#L120'>buffer</a>:char <span class="Special"><-</span> <a href='061text.mu.html#L125'>new-buffer</a><span class="Constant"> 80</span> <span id="L310" class="LineNr">310 </span> buf <span class="Special"><-</span> to-buffer in, buf -<span id="L311" class="LineNr">311 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L344'>buffer-to-array</a> buf +<span id="L311" class="LineNr">311 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L338'>buffer-to-array</a> buf <span id="L312" class="LineNr">312 </span>] <span id="L313" class="LineNr">313 </span> <span id="L314" class="LineNr">314 </span><span class="Comment"># variant of 'to-text' which stops printing after a few elements (and so is robust to cycles)</span> <span id="L315" class="LineNr">315 </span><span class="muRecipe">def</span> to-text-line in:&:<a href='064list.mu.html#L6'>list</a>:_elem<span class="muRecipe"> -> </span>result:text [ <span id="L316" class="LineNr">316 </span> <span class="Constant">local-scope</span> <span id="L317" class="LineNr">317 </span> <span class="Constant">load-ingredients</span> -<span id="L318" class="LineNr">318 </span> buf:&:<a href='061text.mu.html#L126'>buffer</a>:char <span class="Special"><-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 80</span> +<span id="L318" class="LineNr">318 </span> buf:&:<a href='061text.mu.html#L120'>buffer</a>:char <span class="Special"><-</span> <a href='061text.mu.html#L125'>new-buffer</a><span class="Constant"> 80</span> <span id="L319" class="LineNr">319 </span> buf <span class="Special"><-</span> to-buffer in, buf,<span class="Constant"> 6</span> <span class="Comment"># max elements to display</span> -<span id="L320" class="LineNr">320 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L344'>buffer-to-array</a> buf +<span id="L320" class="LineNr">320 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L338'>buffer-to-array</a> buf <span id="L321" class="LineNr">321 </span>] <span id="L322" class="LineNr">322 </span> -<span id="L323" class="LineNr">323 </span><span class="muRecipe">def</span> to-buffer in:&:<a href='064list.mu.html#L6'>list</a>:_elem, buf:&:<a href='061text.mu.html#L126'>buffer</a>:char<span class="muRecipe"> -> </span>buf:&:<a href='061text.mu.html#L126'>buffer</a>:char [ +<span id="L323" class="LineNr">323 </span><span class="muRecipe">def</span> to-buffer in:&:<a href='064list.mu.html#L6'>list</a>:_elem, buf:&:<a href='061text.mu.html#L120'>buffer</a>:char<span class="muRecipe"> -> </span>buf:&:<a href='061text.mu.html#L120'>buffer</a>:char [ <span id="L324" class="LineNr">324 </span> <span class="Constant">local-scope</span> <span id="L325" class="LineNr">325 </span> <span class="Constant">load-ingredients</span> <span id="L326" class="LineNr">326 </span> <span class="Delimiter">{</span> |