diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-12-15 02:09:36 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-12-15 02:09:36 -0800 |
commit | fe8bf967a945c7d9e6aba36e42518262d54bd348 (patch) | |
tree | d8693470d0695508dd650d1b9b836fbeae79394c /html/continuation4.mu.html | |
parent | 5059f32d0ddf36b9591ad0c14ee474ad5f2f8816 (diff) | |
download | mu-fe8bf967a945c7d9e6aba36e42518262d54bd348.tar.gz |
4161
Diffstat (limited to 'html/continuation4.mu.html')
-rw-r--r-- | html/continuation4.mu.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/continuation4.mu.html b/html/continuation4.mu.html index 89fbcd3a..c0be8dc7 100644 --- a/html/continuation4.mu.html +++ b/html/continuation4.mu.html @@ -3,7 +3,7 @@ <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Mu - continuation4.mu</title> -<meta name="Generator" content="Vim/7.4"> +<meta name="Generator" content="Vim/8.0"> <meta name="plugin-version" content="vim7.4_v2"> <meta name="syntax" content="none"> <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> @@ -15,15 +15,15 @@ body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color a { color:#eeeeee; text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } -.muRecipe { color: #ff8700; } -.Special { color: #c00000; } .Conceal { color: #4e4e4e; } +.LineNr { color: #444444; } .Delimiter { color: #800080; } .Comment { color: #9090ff; } .Comment a { color:#0000ee; text-decoration:underline; } .Constant { color: #00a0a0; } -.LineNr { color: #444444; } +.Special { color: #c00000; } .muControl { color: #c0a020; } +.muRecipe { color: #ff8700; } --> </style> @@ -79,7 +79,7 @@ if ('onhashchange' in window) { <span id="L19" class="LineNr">19 </span> l <span class="Special"><-</span> push<span class="Constant"> 3</span>, l <span id="L20" class="LineNr">20 </span> l <span class="Special"><-</span> push<span class="Constant"> 2</span>, l <span id="L21" class="LineNr">21 </span> l <span class="Special"><-</span> push<span class="Constant"> 1</span>, l -<span id="L22" class="LineNr">22 </span> k:continuation, x:num, done?:bool <span class="Special"><-</span> call-with-continuation-mark <a href='continuation4.mu.html#L31'>create-yielder</a>, l +<span id="L22" class="LineNr">22 </span> k:continuation, x:num, done?:bool <span class="Special"><-</span> call-with-continuation-mark <span class="Constant">100/mark</span>, <a href='continuation4.mu.html#L31'>create-yielder</a>, l <span id="L23" class="LineNr">23 </span> <span class="Delimiter">{</span> <span id="L24" class="LineNr">24 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L25" class="LineNr">25 </span> <span class="Conceal">¦</span> $print x <span class="Constant">10/newline</span> @@ -96,13 +96,13 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr">36 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L37" class="LineNr">37 </span> <span class="Conceal">¦</span> n <span class="Special"><-</span> first l <span id="L38" class="LineNr">38 </span> <span class="Conceal">¦</span> l <span class="Special"><-</span> <a href='064list.mu.html#L24'>rest</a> l -<span id="L39" class="LineNr">39 </span> <span class="Conceal">¦</span> return-continuation-until-mark n, done? +<span id="L39" class="LineNr">39 </span> <span class="Conceal">¦</span> return-continuation-until-mark <span class="Constant">100/mark</span>, n, done? <span id="L40" class="LineNr">40 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L41" class="LineNr">41 </span> <span class="Delimiter">}</span> <span id="L42" class="LineNr">42 </span> <span class="Comment"># A function that returns continuations shouldn't get the opportunity to</span> <span id="L43" class="LineNr">43 </span> <span class="Comment"># return. Calling functions should stop calling its continuation after this</span> <span id="L44" class="LineNr">44 </span> <span class="Comment"># point.</span> -<span id="L45" class="LineNr">45 </span> return-continuation-until-mark<span class="Constant"> -1</span>, done? +<span id="L45" class="LineNr">45 </span> return-continuation-until-mark <span class="Constant">100/mark</span>,<span class="Constant"> -1</span>, done? <span id="L46" class="LineNr">46 </span> assert <span class="Constant">0/false</span>, <span class="Constant">[called too many times, ran out of continuations to return]</span> <span id="L47" class="LineNr">47 </span>] </pre> |