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/065duplex_list.mu.html | |
parent | 72cf994869e19f6bdc4678e1122f0082d07d4a11 (diff) | |
download | mu-615f4a970a2fa5c91766ee585a7d531b083f4bff.tar.gz |
4003
Diffstat (limited to 'html/065duplex_list.mu.html')
-rw-r--r-- | html/065duplex_list.mu.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/065duplex_list.mu.html b/html/065duplex_list.mu.html index f4191f54..d9642574 100644 --- a/html/065duplex_list.mu.html +++ b/html/065duplex_list.mu.html @@ -729,21 +729,21 @@ if ('onhashchange' in window) { <span id="L667" class="LineNr">667 </span><span class="muRecipe">def</span> to-text in:&:<a href='065duplex_list.mu.html#L3'>duplex-list</a>:_elem<span class="muRecipe"> -> </span>result:text [ <span id="L668" class="LineNr">668 </span> <span class="Constant">local-scope</span> <span id="L669" class="LineNr">669 </span> <span class="Constant">load-ingredients</span> -<span id="L670" class="LineNr">670 </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="L670" class="LineNr">670 </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="L671" class="LineNr">671 </span> buf <span class="Special"><-</span> to-buffer in, buf -<span id="L672" class="LineNr">672 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L344'>buffer-to-array</a> buf +<span id="L672" class="LineNr">672 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L338'>buffer-to-array</a> buf <span id="L673" class="LineNr">673 </span>] <span id="L674" class="LineNr">674 </span> <span id="L675" class="LineNr">675 </span><span class="Comment"># variant of 'to-text' which stops printing after a few elements (and so is robust to cycles)</span> <span id="L676" class="LineNr">676 </span><span class="muRecipe">def</span> to-text-line in:&:<a href='065duplex_list.mu.html#L3'>duplex-list</a>:_elem<span class="muRecipe"> -> </span>result:text [ <span id="L677" class="LineNr">677 </span> <span class="Constant">local-scope</span> <span id="L678" class="LineNr">678 </span> <span class="Constant">load-ingredients</span> -<span id="L679" class="LineNr">679 </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="L679" class="LineNr">679 </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="L680" class="LineNr">680 </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="L681" class="LineNr">681 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L344'>buffer-to-array</a> buf +<span id="L681" class="LineNr">681 </span> result <span class="Special"><-</span> <a href='061text.mu.html#L338'>buffer-to-array</a> buf <span id="L682" class="LineNr">682 </span>] <span id="L683" class="LineNr">683 </span> -<span id="L684" class="LineNr">684 </span><span class="muRecipe">def</span> to-buffer in:&:<a href='065duplex_list.mu.html#L3'>duplex-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="L684" class="LineNr">684 </span><span class="muRecipe">def</span> to-buffer in:&:<a href='065duplex_list.mu.html#L3'>duplex-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="L685" class="LineNr">685 </span> <span class="Constant">local-scope</span> <span id="L686" class="LineNr">686 </span> <span class="Constant">load-ingredients</span> <span id="L687" class="LineNr">687 </span> <span class="Delimiter">{</span> |