diff options
| author | razetime <raghuallthetime@hotmail.com> | 2022-01-20 11:57:50 +0530 |
|---|---|---|
| committer | razetime <raghuallthetime@hotmail.com> | 2022-01-20 11:57:50 +0530 |
| commit | f3d45a1ca914d59968531a6d5c409d80b73e53c3 (patch) | |
| tree | bc89e3b80c84d854f382e03fdbb5a43e08d791b8 /docs/help/nothing.html | |
| parent | 97e5db7fa0bf2389589a99ccd26cf84c1e0ced73 (diff) | |
complete REPL help for symbols
Diffstat (limited to 'docs/help/nothing.html')
| -rw-r--r-- | docs/help/nothing.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/help/nothing.html b/docs/help/nothing.html new file mode 100644 index 00000000..53a04340 --- /dev/null +++ b/docs/help/nothing.html @@ -0,0 +1,23 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: Middle Dot (`·`)</title> +</head> +<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> +<h1 id="middle-dot-"><a class="header" href="#middle-dot-">Middle Dot (<code><span class='Nothing'>·</span></code>)</a></h1> +<h2 id="-nothing"><a class="header" href="#-nothing"><code><span class='Nothing'>·</span></code>: Nothing</a></h2> +<h3 id="in-trains"><a class="header" href="#in-trains">In Trains</a></h3> +<p>Nothing can serve as a left argument in a train to string together multiple monadic functions.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=KC0rLSkgNQoKKC3CtystKSA1">↗️</a><pre> <span class='Paren'>(</span><span class='Function'>-+-</span><span class='Paren'>)</span> <span class='Number'>5</span> +¯10 + + <span class='Paren'>(</span><span class='Function'>-</span><span class='Nothing'>·</span><span class='Function'>+-</span><span class='Paren'>)</span> <span class='Number'>5</span> +5 +</pre> +<h3 id="in-block-headers"><a class="header" href="#in-block-headers">In Block Headers</a></h3> +<p>For Block header pattern matching syntax, Nothing can be used to indicate an unused value.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=RiDihpAge/CdlYogYeKAv8K34oC/YjogYeKIvmJ9CgpGIDHigL8y4oC/Mw==">↗️</a><pre> <span class='Function'>F</span> <span class='Gets'>←</span> <span class='Brace'>{</span><span class='Function'>𝕊</span> <span class='Value'>a</span><span class='Ligature'>‿</span><span class='Nothing'>·</span><span class='Ligature'>‿</span><span class='Value'>b:</span> <span class='Value'>a</span><span class='Function'>∾</span><span class='Value'>b</span><span class='Brace'>}</span> + + <span class='Function'>F</span> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span> +⟨ 1 3 ⟩ +</pre> |
