aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/block.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-02 14:59:40 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-02 15:06:12 -0500
commitba4658edcf3247e18aacc75eda30a572ed403af2 (patch)
tree05c70c7696f68766eb38ccfdcf19f0fa28e0db80 /docs/doc/block.html
parentc3ca745d472c6dd8fb54c023f1922bc9805b48d2 (diff)
Use the result generation instead of writing ERROR in code blocks
Diffstat (limited to 'docs/doc/block.html')
-rw-r--r--docs/doc/block.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/doc/block.html b/docs/doc/block.html
index 10896e93..1fcd1dd6 100644
--- a/docs/doc/block.html
+++ b/docs/doc/block.html
@@ -195,8 +195,8 @@
⟨ 2 4 ⟩
</pre>
<p>If no header is compatible, the call results in an error.</p>
-<pre> <span class='Number'>3</span> <span class='Function'>CaseAdd</span> <span class='Number'>3</span>
-<span class='Function'>ERROR</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MyBDYXNlQWRkIDM=">↗️</a><pre> <span class='Number'>3</span> <span class='Function'>CaseAdd</span> <span class='Number'>3</span>
+ERROR
</pre>
<h3 id="case-headers">Case headers</h3>
<p>A special rule allows for convenient case-matching syntax for one-argument functions. In any function header with one argument, the function name can be omitted as long as the argument is <em>not</em> a plain identifier—it must be <code><span class='Value'>𝕩</span></code> or a compound value like a list to distinguish it from an immediate block label.</p>