diff options
| author | razetime <raghuallthetime@hotmail.com> | 2022-01-20 08:31:40 +0530 |
|---|---|---|
| committer | razetime <raghuallthetime@hotmail.com> | 2022-01-20 08:31:40 +0530 |
| commit | ae513293cca5fb30dd59874e4e00c0eecab596f6 (patch) | |
| tree | 6e47996dc2dd5afed221005b1cbd604f766b379b | |
| parent | 40be400ecca8c370afa31b60d8f779654b87d1b0 (diff) | |
fix more h2 errors, generate index for repl help
35 files changed, 465 insertions, 36 deletions
diff --git a/docs/help/after_bind.html b/docs/help/after_bind.html index 1e3266ef..45831bb0 100644 --- a/docs/help/after_bind.html +++ b/docs/help/after_bind.html @@ -7,7 +7,7 @@ <h1 id="left-multimap-"><a class="header" href="#left-multimap-">Left Multimap (<code><span class='Modifier2'>β</span></code>)</a></h1> <h2 id="--bind-"><a class="header" href="#--bind-"><code><span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Value'>π</span> <span class='Value'>π©</span></code>: Bind</a></h2> <p>Supply <code><span class='Value'>π</span></code> as a right argument to <code><span class='Function'>π½</span></code> (<code><span class='Value'>π©</span> <span class='Function'>π½</span> <span class='Value'>π</span></code>).</p> -<h2 id="-must-be-a-value-f-must-be-dyadic"><a class="header" href="#-must-be-a-value-f-must-be-dyadic"><code><span class='Value'>π</span></code> must be a value, <code><span class='Function'>F</span></code> must be dyadic.</a></h2> +<p><code><span class='Value'>π</span></code> must be a value, <code><span class='Function'>F</span></code> must be dyadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgLeKfnDMgOQoKICAgLSAzIDkKCiAgIDkgLSAz">βοΈ</a><pre> <span class='Function'>-</span><span class='Modifier2'>β</span><span class='Number'>3</span> <span class='Number'>9</span> 6 @@ -19,7 +19,7 @@ </pre> <h2 id="--after"><a class="header" href="#--after"><code><span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: After</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π©</span></code>, and supply it as a right argument to <code><span class='Function'>π½</span></code> (<code><span class='Value'>π©</span> <span class='Function'>π½</span> <span class='Paren'>(</span><span class='Function'>πΎ</span> <span class='Value'>π©</span><span class='Paren'>)</span></code>).</p> -<h2 id="-must-be-dyadic--must-be-monadic"><a class="header" href="#-must-be-dyadic--must-be-monadic"><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</a></h2> +<p><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgw5fin5wtIDkKCiAgIMOXIC0gOQoKICAgOSDDlyAoLSA5KQ==">βοΈ</a><pre> <span class='Function'>Γ</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>9</span> Β―81 @@ -31,7 +31,7 @@ </pre> <h2 id="---dyadic-after"><a class="header" href="#---dyadic-after"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Dyadic After</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π©</span></code>, and supply it as a right argument to <code><span class='Function'>π½</span></code> (<code><span class='Value'>π¨</span> <span class='Function'>π½</span> <span class='Paren'>(</span><span class='Function'>πΎ</span> <span class='Value'>π©</span><span class='Paren'>)</span></code>).</p> -<h2 id="-must-be-dyadic--must-be-monadic"><a class="header" href="#-must-be-dyadic--must-be-monadic"><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</a></h2> +<p><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMiDDl+KfnC0gMQoKICAgMiDDlyAoLSAxKQ==">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>Γ</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>1</span> Β―2 diff --git a/docs/help/atop.html b/docs/help/atop.html index 2b01480b..deef0cff 100644 --- a/docs/help/atop.html +++ b/docs/help/atop.html @@ -7,7 +7,7 @@ <h1 id="ring-operator-"><a class="header" href="#ring-operator-">Ring Operator (<code><span class='Modifier2'>β</span></code>)</a></h1> <h2 id="--atop"><a class="header" href="#--atop"><code><span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Atop</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π©</span></code>, then apply <code><span class='Function'>π½</span></code> (<code><span class='Function'>π½</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span></code>).</p> -<h2 id="-and--must-be-monadic"><a class="header" href="#-and--must-be-monadic"><code><span class='Function'>π½</span></code> and <code><span class='Function'>πΎ</span></code> must be monadic.</a></h2> +<p><code><span class='Function'>π½</span></code> and <code><span class='Function'>πΎ</span></code> must be monadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgLeKImC0gNQoKICAgLSAtIDU=">βοΈ</a><pre> <span class='Function'>-</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>5</span> 5 @@ -16,7 +16,7 @@ </pre> <h2 id="---dyadic-atop"><a class="header" href="#---dyadic-atop"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Dyadic Atop</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code>, then apply <code><span class='Function'>π½</span></code> (<code><span class='Function'>π½</span> <span class='Paren'>(</span><span class='Value'>π¨</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span><span class='Paren'>)</span></code>).</p> -<h2 id="-must-be-monadic-and--must-be-dyadic"><a class="header" href="#-must-be-monadic-and--must-be-dyadic"><code><span class='Function'>π½</span></code> must be monadic, and <code><span class='Function'>πΎ</span></code> must be dyadic.</a></h2> +<p>#<code><span class='Function'>π½</span></code> must be monadic, and <code><span class='Function'>πΎ</span></code> must be dyadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMSAt4oiYKyAyCgogICAxIC0gKyAyCgogICAtIDEgKyAy">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>-</span><span class='Modifier2'>β</span><span class='Function'>+</span> <span class='Number'>2</span> Β―3 diff --git a/docs/help/before_bind.html b/docs/help/before_bind.html index f084fe4c..2401702e 100644 --- a/docs/help/before_bind.html +++ b/docs/help/before_bind.html @@ -7,7 +7,7 @@ <h1 id="multimap-"><a class="header" href="#multimap-">Multimap (<code><span class='Modifier2'>βΈ</span></code>)</a></h1> <h2 id="--bind-left"><a class="header" href="#--bind-left"><code><span class='Value'>π</span><span class='Modifier2'>βΈ</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Bind Left</a></h2> <p>Supply <code><span class='Value'>π</span></code> as a left argument to <code><span class='Function'>πΎ</span></code> (<code><span class='Value'>π</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span></code>).</p> -<h2 id="-must-be-a-value--must-be-dyadic"><a class="header" href="#-must-be-a-value--must-be-dyadic"><code><span class='Value'>π</span></code> must be a value, <code><span class='Function'>πΎ</span></code> must be dyadic.</a></h2> +<p><code><span class='Value'>π</span></code> must be a value, <code><span class='Function'>πΎ</span></code> must be dyadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgM+KKuC0gOQoKICAgMyAtIDk=">βοΈ</a><pre> <span class='Number'>3</span><span class='Modifier2'>βΈ</span><span class='Function'>-</span> <span class='Number'>9</span> Β―6 @@ -16,7 +16,7 @@ </pre> <h2 id="--before"><a class="header" href="#--before"><code><span class='Function'>π½</span><span class='Modifier2'>βΈ</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Before</a></h2> <p>Apply <code><span class='Function'>π½</span></code> to <code><span class='Value'>π©</span></code>, and supply it as a left argument to <code><span class='Function'>πΎ</span></code> (<code><span class='Paren'>(</span><span class='Function'>π½</span> <span class='Value'>π©</span><span class='Paren'>)</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span></code>).</p> -<h2 id="-must-be-monadic--must-be-dyadic"><a class="header" href="#-must-be-monadic--must-be-dyadic"><code><span class='Function'>π½</span></code> must be monadic, <code><span class='Function'>πΎ</span></code> must be dyadic.</a></h2> +<p><code><span class='Function'>π½</span></code> must be monadic, <code><span class='Function'>πΎ</span></code> must be dyadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgLeKKuCsgOQoKICAgLSArIDkKCiAgICgtIDkpICsgOQ==">βοΈ</a><pre> <span class='Function'>-</span><span class='Modifier2'>βΈ</span><span class='Function'>+</span> <span class='Number'>9</span> 0 @@ -28,7 +28,7 @@ </pre> <h2 id="---dyadic-before"><a class="header" href="#---dyadic-before"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>βΈ</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Dyadic Before</a></h2> <p>Apply <code><span class='Function'>π½</span></code> to <code><span class='Value'>π¨</span></code>, and supply it as a left argument to <code><span class='Function'>πΎ</span></code> (<code><span class='Paren'>(</span><span class='Function'>π½</span> <span class='Value'>π¨</span><span class='Paren'>)</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span></code>).</p> -<h2 id="-must-be-monadic--must-be-dyadic"><a class="header" href="#-must-be-monadic--must-be-dyadic"><code><span class='Function'>π½</span></code> must be monadic, <code><span class='Function'>πΎ</span></code> must be dyadic.</a></h2> +<p><code><span class='Function'>π½</span></code> must be monadic, <code><span class='Function'>πΎ</span></code> must be dyadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMiAt4oq4KyAxCgogICAyIC0gKyAxCgogICAoLSAyKSArIDE=">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>-</span><span class='Modifier2'>βΈ</span><span class='Function'>+</span> <span class='Number'>1</span> Β―1 diff --git a/docs/help/conjugate_add.html b/docs/help/conjugate_add.html index 9f42ea1e..6c248885 100644 --- a/docs/help/conjugate_add.html +++ b/docs/help/conjugate_add.html @@ -13,7 +13,7 @@ Β―1 </pre> <h2 id="---add"><a class="header" href="#---add"><code><span class='Value'>π¨</span> <span class='Function'>+</span> <span class='Value'>π©</span></code>: Add</a></h2> -<h2 id="-added-to--either--or--can-be-a-character-and-if-so-the-other-has-to-be-an-integer"><a class="header" href="#-added-to--either--or--can-be-a-character-and-if-so-the-other-has-to-be-an-integer"><code><span class='Value'>π¨</span></code> added to <code><span class='Value'>π©</span></code>. Either <code><span class='Value'>π¨</span></code> or <code><span class='Value'>π©</span></code> can be a character, and if so, the other has to be an integer.</a></h2> +<p><code><span class='Value'>π¨</span></code> added to <code><span class='Value'>π©</span></code>. Either <code><span class='Value'>π¨</span></code> or <code><span class='Value'>π©</span></code> can be a character, and if so, the other has to be an integer.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxICsgMgoKICAxICsgMuKAvzPigL80CgogICdhJyArIDQ=">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>+</span> <span class='Number'>2</span> 3 diff --git a/docs/help/enclose_lessthan.html b/docs/help/enclose_lessthan.html index 634b255e..7bd6bf84 100644 --- a/docs/help/enclose_lessthan.html +++ b/docs/help/enclose_lessthan.html @@ -18,7 +18,7 @@ β¨β© </pre> <h2 id="---lesser-than"><a class="header" href="#---lesser-than"><code><span class='Value'>π¨</span> <span class='Function'><</span> <span class='Value'>π©</span></code>: Lesser Than</a></h2> -<h2 id="-and--can-both-be-either-numbers-or-characters"><a class="header" href="#-and--can-both-be-either-numbers-or-characters"><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</a></h2> +<p><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxIDwgMwoKICAy4oC/M+KAvzAgPCAz4oC/MeKAvzA=">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'><</span> <span class='Number'>3</span> 1 diff --git a/docs/help/exponential_power.html b/docs/help/exponential_power.html index 6156110d..8b9de1e9 100644 --- a/docs/help/exponential_power.html +++ b/docs/help/exponential_power.html @@ -6,13 +6,13 @@ <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="star-"><a class="header" href="#star-">Star (<code><span class='Function'>β</span></code>)</a></h1> <h2 id="--exponential--"><a class="header" href="#--exponential--"><code><span class='Function'>β</span> <span class='Value'>π©</span></code>: Exponential</a></h2> -<h2 id="e-eulers-constant-to-the-power-of-"><a class="header" href="#e-eulers-constant-to-the-power-of-"><code><span class='Value'>e</span></code> (Euler's constant) to the power of <code><span class='Value'>π©</span></code>.</a></h2> +<p><code><span class='Value'>e</span></code> (Euler's constant) to the power of <code><span class='Value'>π©</span></code>.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICDii4YgMOKAvzHigL8y4oC/Mw==">βοΈ</a><pre> <span class='Function'>β</span> <span class='Number'>0</span><span class='Ligature'>βΏ</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 2.718281828459045 7.38905609893065 20.08553692318767 β© </pre> <h2 id="---power"><a class="header" href="#---power"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Power</a></h2> -<h2 id="-to-the-power-of-"><a class="header" href="#-to-the-power-of-"><code><span class='Value'>π¨</span></code> to the power of <code><span class='Value'>π©</span></code>.</a></h2> +<p><code><span class='Value'>π¨</span></code> to the power of <code><span class='Value'>π©</span></code>.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAyIOKLhiA1CgogIDjigL814oC/OSDii4YgMgoKICAy4oC/MyDii4YgM+KAv8KvNA==">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>β</span> <span class='Number'>5</span> 32 diff --git a/docs/help/fold.html b/docs/help/fold.html index 019d92eb..065070bb 100644 --- a/docs/help/fold.html +++ b/docs/help/fold.html @@ -7,6 +7,7 @@ <h1 id="acute-accent-"><a class="header" href="#acute-accent-">Acute Accent (<code><span class='Modifier'>Β΄</span></code>)</a></h1> <h2 id="--fold"><a class="header" href="#--fold"><code><span class='Function'>π½</span><span class='Modifier'>Β΄</span> <span class='Value'>π©</span></code>: Fold</a></h2> <p>Fold over <code><span class='Value'>π©</span></code> with <code><span class='Function'>π½</span></code> from right to left i.e. Insert <code><span class='Function'>π½</span></code> between the elements of <code><span class='Value'>π©</span></code>.</p> +<p><code><span class='Value'>π©</span></code> must be a simple list (<code><span class='Number'>1</span> <span class='Function'>=</span> <span class='Function'>=</span><span class='Value'>π©</span></code>).</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgK8K0IDHigL8y4oC/MwoKICAgMSsyKzMKCiAgIC3CtCAx4oC/MuKAvzMKCiAgIDEtMi0z">βοΈ</a><pre> <span class='Function'>+</span><span class='Modifier'>Β΄</span> <span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>2</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> 6 diff --git a/docs/help/gradedown_binsdown.html b/docs/help/gradedown_binsdown.html index 4aa25059..f2ae7787 100644 --- a/docs/help/gradedown_binsdown.html +++ b/docs/help/gradedown_binsdown.html @@ -17,7 +17,7 @@ </pre> <h2 id="---bins-down"><a class="header" href="#---bins-down"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Bins Down</a></h2> <p>Binary search for each element of <code><span class='Value'>π©</span></code> in <code><span class='Value'>π¨</span></code>, and return the index found, if any.</p> -<h2 id="-must-be-sorted-in-descending-order"><a class="header" href="#-must-be-sorted-in-descending-order"><code><span class='Value'>π¨</span></code> must be sorted in descending order.</a></h2> +<p><code><span class='Value'>π¨</span></code> must be sorted in descending order.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Right Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgN+KAvzXigL804oC/MyDijZIgMgoKICAgN+KAvzXigL804oC/MyDijZIgMuKAvzY=">βοΈ</a><pre> <span class='Number'>7</span><span class='Ligature'>βΏ</span><span class='Number'>5</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β</span> <span class='Number'>2</span> βΒ· diff --git a/docs/help/gradeup_binsup.html b/docs/help/gradeup_binsup.html index ef5ac4ba..edb64577 100644 --- a/docs/help/gradeup_binsup.html +++ b/docs/help/gradeup_binsup.html @@ -17,7 +17,7 @@ </pre> <h2 id="---bins-up"><a class="header" href="#---bins-up"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Bins Up</a></h2> <p>Binary search for each element of <code><span class='Value'>π©</span></code> in <code><span class='Value'>π¨</span></code>, and return the index found, if any.</p> -<h2 id="-must-be-sorted-in-ascending-order"><a class="header" href="#-must-be-sorted-in-ascending-order"><code><span class='Value'>π¨</span></code> must be sorted in ascending order.</a></h2> +<p><code><span class='Value'>π¨</span></code> must be sorted in ascending order.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgM+KAvzTigL814oC/NyDijYsgMgoKICAgM+KAvzTigL814oC/NyDijYsgMuKAvzY=">βοΈ</a><pre> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>5</span><span class='Ligature'>βΏ</span><span class='Number'>7</span> <span class='Function'>β</span> <span class='Number'>2</span> βΒ· Β· 0 diff --git a/docs/help/greaterthanorequalto.html b/docs/help/greaterthanorequalto.html index 0ef22e70..63832149 100644 --- a/docs/help/greaterthanorequalto.html +++ b/docs/help/greaterthanorequalto.html @@ -6,7 +6,7 @@ <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="greater-than-or-equal-to-"><a class="header" href="#greater-than-or-equal-to-">Greater Than or Equal To (<code><span class='Function'>β₯</span></code>)</a></h1> <h2 id="---greater-than-or-equal-to"><a class="header" href="#---greater-than-or-equal-to"><code><span class='Value'>π¨</span> <span class='Function'>β₯</span> <span class='Value'>π©</span></code>: Greater Than or Equal To</a></h2> -<h2 id="-and--can-both-be-either-numbers-or-characters"><a class="header" href="#-and--can-both-be-either-numbers-or-characters"><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</a></h2> +<p><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxIOKJpSAzCgogIDLigL8z4oC/MCDiiaUgM+KAvzHigL8w">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>β₯</span> <span class='Number'>3</span> 0 diff --git a/docs/help/groupindices_group.html b/docs/help/groupindices_group.html index 2c0bc452..16a66b97 100644 --- a/docs/help/groupindices_group.html +++ b/docs/help/groupindices_group.html @@ -7,7 +7,7 @@ <h1 id="square-cup-"><a class="header" href="#square-cup-">Square Cup (<code><span class='Function'>β</span></code>)</a></h1> <h2 id="--group-indices"><a class="header" href="#--group-indices"><code><span class='Function'>β</span> <span class='Value'>π©</span></code>: Group Indices</a></h2> <p>Group the indices of the major cells of <code><span class='Value'>π©</span></code> by their respective values.</p> -<h2 id="-must-consist-of-integers-groups-start-from-0-"><a class="header" href="#-must-consist-of-integers-groups-start-from-0-"><code><span class='Value'>π©</span></code> must consist of integers. Groups start from 0.</a></h2> +<p><code><span class='Value'>π©</span></code> must consist of integers. Groups start from 0.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAg4oqUIDTigL814oC/NuKAvzbigL804oC/N+KAvzUKCiAgICjihpU4KSDiiY0g4oqUIDTigL814oC/NuKAvzbigL804oC/N+KAvzU=">βοΈ</a><pre> <span class='Function'>β</span> <span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>5</span><span class='Ligature'>βΏ</span><span class='Number'>6</span><span class='Ligature'>βΏ</span><span class='Number'>6</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>7</span><span class='Ligature'>βΏ</span><span class='Number'>5</span> β¨ β¨β© β¨β© β¨β© β¨β© β¨ 0 4 β© β¨ 1 6 β© β¨ 2 3 β© β¨ 5 β© β© diff --git a/docs/help/identity_left.html b/docs/help/identity_left.html index a643aed2..c0560573 100644 --- a/docs/help/identity_left.html +++ b/docs/help/identity_left.html @@ -5,7 +5,7 @@ </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="left-tack-"><a class="header" href="#left-tack-">Left Tack (<code><span class='Function'>β£</span></code>)</a></h1> -<h2 id="--"><a class="header" href="#--"><code><span class='Function'>β£</span> <span class='Value'>π©</span></code>:</a></h2> +<h2 id="--identity"><a class="header" href="#--identity"><code><span class='Function'>β£</span> <span class='Value'>π©</span></code>: Identity</a></h2> <p>Return <code><span class='Value'>π©</span></code>.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICDiiqMgNQ==">βοΈ</a><pre> <span class='Function'>β£</span> <span class='Number'>5</span> 5 diff --git a/docs/help/identity_right.html b/docs/help/identity_right.html index e6867881..fbfc2cf7 100644 --- a/docs/help/identity_right.html +++ b/docs/help/identity_right.html @@ -5,7 +5,7 @@ </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="right-tack-"><a class="header" href="#right-tack-">Right Tack (<code><span class='Function'>β’</span></code>)</a></h1> -<h2 id="--"><a class="header" href="#--"><code><span class='Function'>β’</span> <span class='Value'>π©</span></code>:</a></h2> +<h2 id="--identity"><a class="header" href="#--identity"><code><span class='Function'>β’</span> <span class='Value'>π©</span></code>: Identity</a></h2> <p>Return <code><span class='Value'>π©</span></code>.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICDiiqIgNQ==">βοΈ</a><pre> <span class='Function'>β’</span> <span class='Number'>5</span> 5 diff --git a/docs/help/index.html b/docs/help/index.html new file mode 100644 index 00000000..cae6b620 --- /dev/null +++ b/docs/help/index.html @@ -0,0 +1,273 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: REPL Help</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="repl-help"><a class="header" href="#repl-help">REPL Help</a></h1> +<table> +<thead> +<tr> +<th>Symbol</th> +<th>Link</th> +</tr> +</thead> +<tbody> +<tr> +<td><code><span class='Function'>|</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/absolutevalue_modulus.html">Absolute Value, Modulus</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/after_bind.html">Bind, After, Dyadic After</a></td> +</tr> +<tr> +<td><code><span class='Function'>!</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html">Assert, Dyad</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/atop.html">Atop, Dyadic Atop</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>βΈ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/before_bind.html">Bind Left, Before, Dyadic Before</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/catch.html">Catch</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/ceiling_maximum.html">Ceiling, Maximum</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Λ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/cells.html">Cells</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>βΆ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/choose.html">Choose</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/classify_indexof.html">Classify, Index Of</a></td> +</tr> +<tr> +<td><code><span class='Function'>+</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/conjugate_add.html">Conjugate, Add</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Λ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/constant.html">Constant</a></td> +</tr> +<tr> +<td><code><span class='Function'>β·</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/deduplicate_find.html">Deduplicate, Find</a></td> +</tr> +<tr> +<td><code><span class='Function'>β‘</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/depth_match.html">Depth, Match</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/depth.html">Depth</a></td> +</tr> +<tr> +<td><code><span class='Function'>β₯</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/deshape_reshape.html">Deshape, Reshape</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Β¨</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/each.html">Each</a></td> +</tr> +<tr> +<td><code><span class='Function'><</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/enclose_lessthan.html">Enclose, Lesser Than</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/enlist_pair.html">Enlist, Pair</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/exponential_power.html">Exponential, Power</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/firstcell_select.html">First Cell, Select</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/first_pick.html">First, Pick</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/floor_minimum.html">Floor, Minimum</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Β΄</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/fold.html">Fold, Fold With initial</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/gradedown_binsdown.html">Grade Down, Bins Down</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/gradeup_binsup.html">Grade Up, Bins Up</a></td> +</tr> +<tr> +<td><code><span class='Function'>β₯</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/greaterthanorequalto.html">Greater Than or Equal To</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/groupindices_group.html">Group Indices, Group</a></td> +</tr> +<tr> +<td><code><span class='Function'>β£</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/identity_left.html">Identity, Left</a></td> +</tr> +<tr> +<td><code><span class='Function'>β’</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/identity_right.html">Identity, Right</a></td> +</tr> +<tr> +<td><code><span class='Function'>/</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/indices_replicate.html">Indices, Replicate</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Λ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/insert.html">Insert, Insert With initial</a></td> +</tr> +<tr> +<td><code><span class='Function'>βΎ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/join_jointo.html">Join, Join</a></td> +</tr> +<tr> +<td><code><span class='Function'>β </span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/length_notequals.html">Length, Not Equal To</a></td> +</tr> +<tr> +<td><code><span class='Function'>β€</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/lessthanorequalto.html">Lesser Than or Equal To</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/markfirst_memberof.html">Unique Mask, Member Of</a></td> +</tr> +<tr> +<td><code><span class='Function'>></span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/merge_greaterthan.html">Merge, Greater Than</a></td> +</tr> +<tr> +<td><code><span class='Function'>-</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/negate_subtract.html">Negate, Subtract</a></td> +</tr> +<tr> +<td><code><span class='Function'>Β¬</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/not_span.html">Logical Not, Span</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/occurrencecount_progressiveindexof.html">Occurrence Count, Progressive Index Of</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/over.html">Atop, Over</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/prefixes_take.html">Prefixes, Take</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/range_windows.html">Range, Windows</a></td> +</tr> +<tr> +<td><code><span class='Function'>=</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/rank_equals.html">Rank, Equal To</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/rank.html">Rank</a></td> +</tr> +<tr> +<td><code><span class='Function'>Γ·</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/reciprocal_divide.html">Reciprocal, Divide</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/repeat.html">Repeat</a></td> +</tr> +<tr> +<td><code><span class='Function'>β½</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/reverse_rotate.html">Reverse, Dyad</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>`</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/scan.html">Scan, Scan With initial</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>Λ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/self_swap.html">Self, Swap</a></td> +</tr> +<tr> +<td><code><span class='Function'>β’</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/shape_notmatch.html">Shape, Not Match</a></td> +</tr> +<tr> +<td><code><span class='Function'>Β»</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/shiftafter.html">Shift After, Shift After</a></td> +</tr> +<tr> +<td><code><span class='Function'>Β«</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/shiftbefore.html">Shift Before, Shift Before</a></td> +</tr> +<tr> +<td><code><span class='Function'>Γ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/sign_multiply.html">Sign, Multiply</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/solo_couple.html">Solo, Couple</a></td> +</tr> +<tr> +<td><code><span class='Function'>β¨</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/sortdown_or.html">Sort Down, Logical Or</a></td> +</tr> +<tr> +<td><code><span class='Function'>β§</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/sortup_and.html">Sort Up, Logical And</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/squareroot_root.html">Square root, Root</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/suffixes_drop.html">Suffixes, Drop</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/table.html">Each</a></td> +</tr> +<tr> +<td><code><span class='Function'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/transpose_reorderaxes.html">Transpose, Reorder Axes</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>βΎ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/under.html">Under</a></td> +</tr> +<tr> +<td><code><span class='Modifier'>βΌ</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/undo.html">Undo</a></td> +</tr> +<tr> +<td><code><span class='Modifier2'>β</span></code></td> +<td><a href="https://mlochbaum.github.io/BQN/help/valences.html">Valences, Dyadic Valences</a></td> +</tr> +</tbody> +</table> diff --git a/docs/help/insert.html b/docs/help/insert.html new file mode 100644 index 00000000..52e42e55 --- /dev/null +++ b/docs/help/insert.html @@ -0,0 +1,32 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: Acute Accent (`Λ`)</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="acute-accent-"><a class="header" href="#acute-accent-">Acute Accent (<code><span class='Modifier'>Λ</span></code>)</a></h1> +<h2 id="--insert"><a class="header" href="#--insert"><code><span class='Function'>π½</span><span class='Modifier'>Λ</span> <span class='Value'>π©</span></code>: Insert</a></h2> +<p>Fold over <code><span class='Value'>π©</span></code> with <code><span class='Function'>π½</span></code> from right to left i.e. Insert <code><span class='Function'>π½</span></code> between the major cells of <code><span class='Value'>π©</span></code>.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgYSDihpAgM+KAvzMg4qWKIOKGlTkKCiAgICvLnSBhCgogICAw4oC/MeKAvzIgKyAz4oC/NOKAvzUgKyA24oC/N+KAvzg=">βοΈ</a><pre> <span class='Value'>a</span> <span class='Gets'>β</span> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β₯</span> <span class='Function'>β</span><span class='Number'>9</span> + + <span class='Function'>+</span><span class='Modifier'>Λ</span> <span class='Value'>a</span> +β¨ 9 12 15 β© + + <span class='Number'>0</span><span class='Ligature'>βΏ</span><span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>2</span> <span class='Function'>+</span> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>5</span> <span class='Function'>+</span> <span class='Number'>6</span><span class='Ligature'>βΏ</span><span class='Number'>7</span><span class='Ligature'>βΏ</span><span class='Number'>8</span> +β¨ 9 12 15 β© +</pre> +<h2 id="---insert-with-initial"><a class="header" href="#---insert-with-initial"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier'>Λ</span> <span class='Value'>π©</span></code>: Insert With initial</a></h2> +<p>Monadic insert, but use <code><span class='Value'>π¨</span></code> as initial right argument.</p> +<p>If</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgYSDihpAgM+KAvzMg4qWKIOKGlTkKCiAgIDHigL8x4oC/MSAry50gYQoKICAgMSAry50gYQoKICAgMOKAvzHigL8yICsgM+KAvzTigL81ICsgNuKAvzfigL84ICsgMeKAvzHigL8x">βοΈ</a><pre> <span class='Value'>a</span> <span class='Gets'>β</span> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>3</span> <span class='Function'>β₯</span> <span class='Function'>β</span><span class='Number'>9</span> +<span class='Error'>Error: Redefinition</span> + + <span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>1</span> <span class='Function'>+</span><span class='Modifier'>Λ</span> <span class='Value'>a</span> +β¨ 10 13 16 β© + + <span class='Number'>1</span> <span class='Function'>+</span><span class='Modifier'>Λ</span> <span class='Value'>a</span> +β¨ 10 13 16 β© + + <span class='Number'>0</span><span class='Ligature'>βΏ</span><span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>2</span> <span class='Function'>+</span> <span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>5</span> <span class='Function'>+</span> <span class='Number'>6</span><span class='Ligature'>βΏ</span><span class='Number'>7</span><span class='Ligature'>βΏ</span><span class='Number'>8</span> <span class='Function'>+</span> <span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>1</span><span class='Ligature'>βΏ</span><span class='Number'>1</span> +β¨ 10 13 16 β© +</pre> diff --git a/docs/help/lessthanorequalto.html b/docs/help/lessthanorequalto.html index 061f9756..70e379b1 100644 --- a/docs/help/lessthanorequalto.html +++ b/docs/help/lessthanorequalto.html @@ -6,7 +6,7 @@ <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="lesser-than-or-equal-to-"><a class="header" href="#lesser-than-or-equal-to-">Lesser Than or Equal To (<code><span class='Function'>β€</span></code>)</a></h1> <h2 id="---lesser-than-or-equal-to"><a class="header" href="#---lesser-than-or-equal-to"><code><span class='Value'>π¨</span> <span class='Function'>β€</span> <span class='Value'>π©</span></code>: Lesser Than or Equal To</a></h2> -<h2 id="-and--can-both-be-either-numbers-or-characters"><a class="header" href="#-and--can-both-be-either-numbers-or-characters"><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</a></h2> +<p><code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code> can both be either numbers or characters.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxIOKJpCAzCgogIDLigL8z4oC/MCDiiaQgM+KAvzHigL8w">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>β€</span> <span class='Number'>3</span> 1 diff --git a/docs/help/over.html b/docs/help/over.html index a7629b90..518919c1 100644 --- a/docs/help/over.html +++ b/docs/help/over.html @@ -7,7 +7,7 @@ <h1 id="circle-"><a class="header" href="#circle-">Circle (<code><span class='Modifier2'>β</span></code>)</a></h1> <h2 id="--atop"><a class="header" href="#--atop"><code><span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Atop</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π©</span></code>, then apply <code><span class='Function'>π½</span></code> (<code><span class='Function'>π½</span> <span class='Function'>πΎ</span> <span class='Value'>π©</span></code>).</p> -<h2 id="-and--must-be-monadic"><a class="header" href="#-and--must-be-monadic"><code><span class='Function'>π½</span></code> and <code><span class='Function'>πΎ</span></code> must be monadic.</a></h2> +<p><code><span class='Function'>π½</span></code> and <code><span class='Function'>πΎ</span></code> must be monadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgLeKXiy0gNQoKICAgLSAtIDU=">βοΈ</a><pre> <span class='Function'>-</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>5</span> 5 @@ -16,7 +16,7 @@ </pre> <h2 id="---over"><a class="header" href="#---over"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Over</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code>, then apply <code><span class='Function'>π½</span></code> to them (<code><span class='Paren'>(</span><span class='Function'>πΎ</span> <span class='Value'>π¨</span><span class='Paren'>)</span> <span class='Function'>π½</span> <span class='Paren'>(</span><span class='Function'>πΎ</span> <span class='Value'>π©</span><span class='Paren'>)</span></code>).</p> -<h2 id="-must-be-dyadic--must-be-monadic"><a class="header" href="#-must-be-dyadic--must-be-monadic"><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</a></h2> +<p><code><span class='Function'>π½</span></code> must be dyadic, <code><span class='Function'>πΎ</span></code> must be monadic.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMSAr4peLLSAyCgogICAxICsgLSAyCgogICAoLSAxKSArICgtIDIp">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>+</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>2</span> Β―3 diff --git a/docs/help/reciprocal_divide.html b/docs/help/reciprocal_divide.html index 7aaee42d..ee87812e 100644 --- a/docs/help/reciprocal_divide.html +++ b/docs/help/reciprocal_divide.html @@ -12,7 +12,7 @@ 0.2 </pre> <h2 id="---divide"><a class="header" href="#---divide"><code><span class='Value'>π¨</span> <span class='Function'>Γ·</span> <span class='Value'>π©</span></code>: Divide</a></h2> -<h2 id="-divided-by-"><a class="header" href="#-divided-by-"><code><span class='Value'>π¨</span></code> divided by <code><span class='Value'>π©</span></code>.</a></h2> +<p><code><span class='Value'>π¨</span></code> divided by <code><span class='Value'>π©</span></code>.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSDDtyA0CgoxNCDDtyA3">βοΈ</a><pre> <span class='Number'>5</span> <span class='Function'>Γ·</span> <span class='Number'>4</span> 1.25 diff --git a/docs/help/scan.html b/docs/help/scan.html index 9ddf093a..362dceb8 100644 --- a/docs/help/scan.html +++ b/docs/help/scan.html @@ -5,7 +5,7 @@ </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="grave---"><a class="header" href="#grave---">Grave (<code><span class='Modifier'>`</span></code>)</a></h1> -<h2 id="--fold"><a class="header" href="#--fold"><code><span class='Function'>π½</span><span class='Modifier'>`</span> <span class='Value'>π©</span></code>: Fold</a></h2> +<h2 id="--scan"><a class="header" href="#--scan"><code><span class='Function'>π½</span><span class='Modifier'>`</span> <span class='Value'>π©</span></code>: Scan</a></h2> <p>Scan over <code><span class='Value'>π©</span></code> with <code><span class='Function'>π½</span></code> from left to right, producing intermediate values.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgK2AgMeKAvzLigL8zCgogICDin6gxLCAxKzIsICgxKzIpKzPin6kKCiAgIC1gIDHigL8y4oC/MwoKICAg4p+oMSwgMS0yLCAoMS0yKS0z4p+p">βοΈ</a><pre> <span class='Function'>+</span><span class='Modifier'>`</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 6 β© diff --git a/docs/help/sign_multiply.html b/docs/help/sign_multiply.html index e6eaf594..02a61f65 100644 --- a/docs/help/sign_multiply.html +++ b/docs/help/sign_multiply.html @@ -17,7 +17,7 @@ β¨ Β―1 0 1 1 β© </pre> <h2 id="---multiply"><a class="header" href="#---multiply"><code><span class='Value'>π¨</span> <span class='Function'>Γ</span> <span class='Value'>π©</span></code>: Multiply</a></h2> -<h2 id="-multiplied-by-"><a class="header" href="#-multiplied-by-"><code><span class='Value'>π¨</span></code> multiplied by <code><span class='Value'>π©</span></code>.</a></h2> +<p><code><span class='Value'>π¨</span></code> multiplied by <code><span class='Value'>π©</span></code>.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAxIMOXIDIKCiAgMiDDlyAy4oC/M+KAvzQ=">βοΈ</a><pre> <span class='Number'>1</span> <span class='Function'>Γ</span> <span class='Number'>2</span> 2 diff --git a/docs/help/squareroot_root.html b/docs/help/squareroot_root.html index 94883873..15da07b3 100644 --- a/docs/help/squareroot_root.html +++ b/docs/help/squareroot_root.html @@ -11,7 +11,7 @@ 1.414213562373095 </pre> <h2 id="---root"><a class="header" href="#---root"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Root</a></h2> -<h2 id="th-root-of-"><a class="header" href="#th-root-of-"><code><span class='Value'>π¨</span></code>th root of <code><span class='Value'>π©</span></code>.</a></h2> +<p><code><span class='Value'>π¨</span></code>th root of <code><span class='Value'>π©</span></code>.</p> <p><a href="https://mlochbaum.github.io/BQN/doc/arithmetic.html#pervasion">Pervasive.</a></p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAyIOKImiAyCgogIDHigL8y4oC/M+KAvzQg4oiaIDQgIA==">βοΈ</a><pre> <span class='Number'>2</span> <span class='Function'>β</span> <span class='Number'>2</span> 1.414213562373095 diff --git a/docs/help/transpose_reorderaxes.html b/docs/help/transpose_reorderaxes.html index 2d42e13a..17719fdf 100644 --- a/docs/help/transpose_reorderaxes.html +++ b/docs/help/transpose_reorderaxes.html @@ -21,7 +21,7 @@ <span class='Function'>β’β</span> <span class='Value'>b</span> β¨ 2 3 1 β© </pre> -<h2 id="---dyad"><a class="header" href="#---dyad"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Dyad</a></h2> +<h2 id="---reorder-axes"><a class="header" href="#---reorder-axes"><code><span class='Value'>π¨</span> <span class='Function'>β</span> <span class='Value'>π©</span></code>: Reorder Axes</a></h2> <p>Rearrange the axes of <code><span class='Value'>π©</span></code> as per the axis indices in <code><span class='Value'>π¨</span></code>.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAg4omiIGEg4oaQIDLigL8z4oC/NOKAvzXigL82IOKlijEKCiAgIOKJoiAx4oC/M+KAvzLigL8w4oC/NCDijYkgYQ==">βοΈ</a><pre> <span class='Function'>β’</span> <span class='Value'>a</span> <span class='Gets'>β</span> <span class='Number'>2</span><span class='Ligature'>βΏ</span><span class='Number'>3</span><span class='Ligature'>βΏ</span><span class='Number'>4</span><span class='Ligature'>βΏ</span><span class='Number'>5</span><span class='Ligature'>βΏ</span><span class='Number'>6</span> <span class='Function'>β₯</span><span class='Number'>1</span> <span class='Error'>Error: Redefinition</span> diff --git a/docs/help/valences.html b/docs/help/valences.html index bca22e88..8a1072d8 100644 --- a/docs/help/valences.html +++ b/docs/help/valences.html @@ -13,7 +13,7 @@ <span class='Function'>-</span><span class='Modifier2'>β</span><span class='Function'>+</span> <span class='Number'>5</span> Β―5 </pre> -<h2 id="---valences"><a class="header" href="#---valences"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Valences</a></h2> +<h2 id="---dyadic-valences"><a class="header" href="#---dyadic-valences"><code><span class='Value'>π¨</span> <span class='Function'>π½</span><span class='Modifier2'>β</span><span class='Function'>πΎ</span> <span class='Value'>π©</span></code>: Dyadic Valences</a></h2> <p>Apply <code><span class='Function'>πΎ</span></code> to <code><span class='Value'>π¨</span></code> and <code><span class='Value'>π©</span></code>.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgNCAr4oqYLSA1CgogICA0IC3iipgrIDU=">βοΈ</a><pre> <span class='Number'>4</span> <span class='Function'>+</span><span class='Modifier2'>β</span><span class='Function'>-</span> <span class='Number'>5</span> Β―1 diff --git a/help/after_bind.md b/help/after_bind.md index 5163d4f9..a0c15279 100644 --- a/help/after_bind.md +++ b/help/after_bind.md @@ -6,7 +6,7 @@ Supply `π` as a right argument to `π½` (`π© π½ π`). -## `π` must be a value, `F` must be dyadic. +`π` must be a value, `F` must be dyadic. -β3 9 diff --git a/help/before_bind.md b/help/before_bind.md index 290e8fe9..c2d0acd5 100644 --- a/help/before_bind.md +++ b/help/before_bind.md @@ -6,7 +6,7 @@ Supply `π` as a left argument to `πΎ` (`π πΎ π©`). -## `π` must be a value, `πΎ` must be dyadic. +`π` must be a value, `πΎ` must be dyadic. 3βΈ- 9 diff --git a/help/fold.md b/help/fold.md index 3684d96c..33b2e0f5 100644 --- a/help/fold.md +++ b/help/fold.md @@ -5,7 +5,9 @@ ## `π½Β΄ π©`: Fold Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the elements of `π©`. - + +`π©` must be a simple list (`1 = =π©`). + +Β΄ 1βΏ2βΏ3 1+2+3 diff --git a/help/genhelp.bqn b/help/genhelp.bqn new file mode 100755 index 00000000..cf50c939 --- /dev/null +++ b/help/genhelp.bqn @@ -0,0 +1,19 @@ +#!/usr/bin/env cbqn + +thing β { + data β β’FLines π© + names β (β£βΎ", "βΎβ’)Β΄{(¬·β§`' 'βΈ=)βΈ/βΎβ½(2+β/':'=π©)βπ©}Β¨("## "β‘3βΈβ)Β¨βΈ/data + tβΏd β βΎ/Β¨(βdata)=Β¨"()" + sym β "`"βΎΛ"`"βΎ{'`':"` ` `"; '|':"\"βΎπ© ; π©}Β―3β2βdata + β’Show "| " βΎ sym βΎ " | [" βΎ names βΎ "]("βΎ((t+1)βdββdata)βΎ ") |" +}Β¨β’args + +head β β¨ +"*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/index.html).*" +β¨β© +"# REPL Help" +β¨β© +"| Symbol | Link |" +"|--------|------|" +β© +"index.md.tmp" β’FLines head βΎ thing #rename once you have a proper file.
\ No newline at end of file diff --git a/help/groupindices_group.md b/help/groupindices_group.md index ee0e9762..5afa162b 100644 --- a/help/groupindices_group.md +++ b/help/groupindices_group.md @@ -6,7 +6,7 @@ Group the indices of the major cells of `π©` by their respective values. -## `π©` must consist of integers. Groups start from 0. +`π©` must consist of integers. Groups start from 0. β 4βΏ5βΏ6βΏ6βΏ4βΏ7βΏ5 diff --git a/help/identity_left.md b/help/identity_left.md index dabe6cc7..3a61225b 100644 --- a/help/identity_left.md +++ b/help/identity_left.md @@ -2,7 +2,7 @@ # Left Tack (`β£`) -## `β£ π©`: +## `β£ π©`: Identity Return `π©`. diff --git a/help/identity_right.md b/help/identity_right.md index a0844a8f..da81bf11 100644 --- a/help/identity_right.md +++ b/help/identity_right.md @@ -2,7 +2,7 @@ # Right Tack (`β’`) -## `β’ π©`: +## `β’ π©`: Identity Return `π©`. diff --git a/help/index.md b/help/index.md new file mode 100644 index 00000000..8a0f2c1b --- /dev/null +++ b/help/index.md @@ -0,0 +1,70 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/index.html).* + +# REPL Help + +| Symbol | Link | +|--------|------| +| `\|` | [Absolute Value, Modulus](https://mlochbaum.github.io/BQN/help/absolutevalue_modulus.html) | +| `β` | [Bind, After, Dyadic After](https://mlochbaum.github.io/BQN/help/after_bind.html) | +| `!` | [Assert, Dyad](https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html) | +| `β` | [Atop, Dyadic Atop](https://mlochbaum.github.io/BQN/help/atop.html) | +| `βΈ` | [Bind Left, Before, Dyadic Before](https://mlochbaum.github.io/BQN/help/before_bind.html) | +| `β` | [Catch](https://mlochbaum.github.io/BQN/help/catch.html) | +| `β` | [Ceiling, Maximum](https://mlochbaum.github.io/BQN/help/ceiling_maximum.html) | +| `Λ` | [Cells](https://mlochbaum.github.io/BQN/help/cells.html) | +| `βΆ` | [Choose](https://mlochbaum.github.io/BQN/help/choose.html) | +| `β` | [Classify, Index Of](https://mlochbaum.github.io/BQN/help/classify_indexof.html) | +| `+` | [Conjugate, Add](https://mlochbaum.github.io/BQN/help/conjugate_add.html) | +| `Λ` | [Constant](https://mlochbaum.github.io/BQN/help/constant.html) | +| `β·` | [Deduplicate, Find](https://mlochbaum.github.io/BQN/help/deduplicate_find.html) | +| `β‘` | [Depth, Match](https://mlochbaum.github.io/BQN/help/depth_match.html) | +| `β` | [Depth](https://mlochbaum.github.io/BQN/help/depth.html) | +| `β₯` | [Deshape, Reshape](https://mlochbaum.github.io/BQN/help/deshape_reshape.html) | +| `Β¨` | [Each](https://mlochbaum.github.io/BQN/help/each.html) | +| `<` | [Enclose, Lesser Than](https://mlochbaum.github.io/BQN/help/enclose_lessthan.html) | +| `β` | [Enlist, Pair](https://mlochbaum.github.io/BQN/help/enlist_pair.html) | +| `β` | [Exponential, Power](https://mlochbaum.github.io/BQN/help/exponential_power.html) | +| `β` | [First Cell, Select](https://mlochbaum.github.io/BQN/help/firstcell_select.html) | +| `β` | [First, Pick](https://mlochbaum.github.io/BQN/help/first_pick.html) | +| `β` | [Floor, Minimum](https://mlochbaum.github.io/BQN/help/floor_minimum.html) | +| `Β΄` | [Fold, Fold With initial](https://mlochbaum.github.io/BQN/help/fold.html) | +| `β` | [Grade Down, Bins Down](https://mlochbaum.github.io/BQN/help/gradedown_binsdown.html) | +| `β` | [Grade Up, Bins Up](https://mlochbaum.github.io/BQN/help/gradeup_binsup.html) | +| `β₯` | [Greater Than or Equal To](https://mlochbaum.github.io/BQN/help/greaterthanorequalto.html) | +| `β` | [Group Indices, Group](https://mlochbaum.github.io/BQN/help/groupindices_group.html) | +| `β£` | [Identity, Left](https://mlochbaum.github.io/BQN/help/identity_left.html) | +| `β’` | [Identity, Right](https://mlochbaum.github.io/BQN/help/identity_right.html) | +| `/` | [Indices, Replicate](https://mlochbaum.github.io/BQN/help/indices_replicate.html) | +| `Λ` | [Insert, Insert With initial](https://mlochbaum.github.io/BQN/help/insert.html) | +| `βΎ` | [Join, Join](https://mlochbaum.github.io/BQN/help/join_jointo.html) | +| `β ` | [Length, Not Equal To](https://mlochbaum.github.io/BQN/help/length_notequals.html) | +| `β€` | [Lesser Than or Equal To](https://mlochbaum.github.io/BQN/help/lessthanorequalto.html) | +| `β` | [Unique Mask, Member Of](https://mlochbaum.github.io/BQN/help/markfirst_memberof.html) | +| `>` | [Merge, Greater Than](https://mlochbaum.github.io/BQN/help/merge_greaterthan.html) | +| `-` | [Negate, Subtract](https://mlochbaum.github.io/BQN/help/negate_subtract.html) | +| `Β¬` | [Logical Not, Span](https://mlochbaum.github.io/BQN/help/not_span.html) | +| `β` | [Occurrence Count, Progressive Index Of](https://mlochbaum.github.io/BQN/help/occurrencecount_progressiveindexof.html) | +| `β` | [Atop, Over](https://mlochbaum.github.io/BQN/help/over.html) | +| `β` | [Prefixes, Take](https://mlochbaum.github.io/BQN/help/prefixes_take.html) | +| `β` | [Range, Windows](https://mlochbaum.github.io/BQN/help/range_windows.html) | +| `=` | [Rank, Equal To](https://mlochbaum.github.io/BQN/help/rank_equals.html) | +| `β` | [Rank](https://mlochbaum.github.io/BQN/help/rank.html) | +| `Γ·` | [Reciprocal, Divide](https://mlochbaum.github.io/BQN/help/reciprocal_divide.html) | +| `β` | [Repeat](https://mlochbaum.github.io/BQN/help/repeat.html) | +| `β½` | [Reverse, Dyad](https://mlochbaum.github.io/BQN/help/reverse_rotate.html) | +| `` ` `` | [Scan, Scan With initial](https://mlochbaum.github.io/BQN/help/scan.html) | +| `Λ` | [Self, Swap](https://mlochbaum.github.io/BQN/help/self_swap.html) | +| `β’` | [Shape, Not Match](https://mlochbaum.github.io/BQN/help/shape_notmatch.html) | +| `Β»` | [Shift After, Shift After](https://mlochbaum.github.io/BQN/help/shiftafter.html) | +| `Β«` | [Shift Before, Shift Before](https://mlochbaum.github.io/BQN/help/shiftbefore.html) | +| `Γ` | [Sign, Multiply](https://mlochbaum.github.io/BQN/help/sign_multiply.html) | +| `β` | [Solo, Couple](https://mlochbaum.github.io/BQN/help/solo_couple.html) | +| `β¨` | [Sort Down, Logical Or](https://mlochbaum.github.io/BQN/help/sortdown_or.html) | +| `β§` | [Sort Up, Logical And](https://mlochbaum.github.io/BQN/help/sortup_and.html) | +| `β` | [Square root, Root](https://mlochbaum.github.io/BQN/help/squareroot_root.html) | +| `β` | [Suffixes, Drop](https://mlochbaum.github.io/BQN/help/suffixes_drop.html) | +| `β` | [Each](https://mlochbaum.github.io/BQN/help/table.html) | +| `β` | [Transpose, Reorder Axes](https://mlochbaum.github.io/BQN/help/transpose_reorderaxes.html) | +| `βΎ` | [Under](https://mlochbaum.github.io/BQN/help/under.html) | +| `βΌ` | [Undo](https://mlochbaum.github.io/BQN/help/undo.html) | +| `β` | [Valences, Dyadic Valences](https://mlochbaum.github.io/BQN/help/valences.html) | diff --git a/help/insert.md b/help/insert.md new file mode 100644 index 00000000..79642d39 --- /dev/null +++ b/help/insert.md @@ -0,0 +1,32 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/insert.html).* + +# Acute Accent (`Λ`) + +## `π½Λ π©`: Insert + +Fold over `π©` with `π½` from right to left i.e. Insert `π½` between the major cells of `π©`. + + a β 3βΏ3 β₯ β9 + + +Λ a + + 0βΏ1βΏ2 + 3βΏ4βΏ5 + 6βΏ7βΏ8 + + +## `π¨ π½Λ π©`: Insert With initial + +Monadic insert, but use `π¨` as initial right argument. + +If + + a β 3βΏ3 β₯ β9 + + 1βΏ1βΏ1 +Λ a + + 1 +Λ a + + 0βΏ1βΏ2 + 3βΏ4βΏ5 + 6βΏ7βΏ8 + 1βΏ1βΏ1 + + + + diff --git a/help/scan.md b/help/scan.md index c2e92f67..1847de86 100644 --- a/help/scan.md +++ b/help/scan.md @@ -2,7 +2,7 @@ # Grave (`` ` ``) -## ``π½` π©``: Fold +## ``π½` π©``: Scan Scan over `π©` with `π½` from left to right, producing intermediate values. diff --git a/help/transpose_reorderaxes.md b/help/transpose_reorderaxes.md index 244fc444..72060ce2 100644 --- a/help/transpose_reorderaxes.md +++ b/help/transpose_reorderaxes.md @@ -16,7 +16,7 @@ Move the first axis of `π©` to the end. -## `π¨ β π©`: Dyad +## `π¨ β π©`: Reorder Axes Rearrange the axes of `π©` as per the axis indices in `π¨`. diff --git a/help/valences.md b/help/valences.md index d7ef83b8..e9ac866e 100644 --- a/help/valences.md +++ b/help/valences.md @@ -12,7 +12,7 @@ Apply `π½` to `π©`. -## `π¨ π½βπΎ π©`: Valences +## `π¨ π½βπΎ π©`: Dyadic Valences Apply `πΎ` to `π¨` and `π©`. |
