aboutsummaryrefslogtreecommitdiff
path: root/docs/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-06 21:55:23 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-06 22:00:24 -0500
commitabe8ae4745bb2ebe3b71b047aa92e2ae89a414d5 (patch)
treea9344b34a666ae7f83693762cb905db9f80e426e /docs/doc
parent337044f77dc491459e798625972cd83bed1e72bc (diff)
Avoid joining units in some documentation
Diffstat (limited to 'docs/doc')
-rw-r--r--docs/doc/block.html4
-rw-r--r--docs/doc/functional.html2
-rw-r--r--docs/doc/group.html8
-rw-r--r--docs/doc/join.html2
4 files changed, 8 insertions, 8 deletions
diff --git a/docs/doc/block.html b/docs/doc/block.html
index 1fcd1dd6..e5652775 100644
--- a/docs/doc/block.html
+++ b/docs/doc/block.html
@@ -68,9 +68,9 @@
<p>Of these, <code><span class='Value'>𝕣</span></code> is sort of a &quot;more special&quot; character, as we'll discuss below. Except for <code><span class='Value'>𝕣</span></code>, every special name is a single character and can't have underscores added to spell it as a modifier, allowing a modifier to be applied to a special name with no spacing as in <code><span class='Value'>𝕗</span><span class='Modifier'>_m</span></code>, something that can't be done with ordinary names.</p>
<h3 id="arguments">Arguments</h3>
<p>The names <code><span class='Value'>𝕨</span></code> and <code><span class='Value'>𝕩</span></code>, and their uppercase spellings, represent function arguments. As the argument to a function is typically data, it's more common to use the lowercase forms for these. Either of these names will turn an immediate block into a function (or an immediate modifier into a deferred one; see the next section). Instead of being evaluated as soon as it appears in the source, a function is evaluated when it's called, with the special names set to appropriate values. Unlike in Dyalog APL's dfns, their values can be changed like ordinary variables.</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=eydjJz3wnZWpfSAiYWJjZCIKeyDwnZWpK+KGqTIg4ouEIDDiiL7wnZWpIH0gMwo0IHsg4p+o8J2VqeKLhC3wnZWo4p+pIH0gNQ==">↗️</a><pre> <span class='Brace'>{</span><span class='String'>'c'</span><span class='Function'>=</span><span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='String'>&quot;abcd&quot;</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=eydjJz3wnZWpfSAiYWJjZCIKeyDwnZWpK+KGqTIg4ouEIDDiiY3wnZWpIH0gMwo0IHsg4p+o8J2VqeKLhC3wnZWo4p+pIH0gNQ==">↗️</a><pre> <span class='Brace'>{</span><span class='String'>'c'</span><span class='Function'>=</span><span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='String'>&quot;abcd&quot;</span>
⟨ 0 0 1 0 ⟩
- <span class='Brace'>{</span> <span class='Value'>𝕩</span><span class='Function'>+</span><span class='Gets'>↩</span><span class='Number'>2</span> <span class='Separator'>β‹„</span> <span class='Number'>0</span><span class='Function'>∾</span><span class='Value'>𝕩</span> <span class='Brace'>}</span> <span class='Number'>3</span>
+ <span class='Brace'>{</span> <span class='Value'>𝕩</span><span class='Function'>+</span><span class='Gets'>↩</span><span class='Number'>2</span> <span class='Separator'>β‹„</span> <span class='Number'>0</span><span class='Function'>≍</span><span class='Value'>𝕩</span> <span class='Brace'>}</span> <span class='Number'>3</span>
⟨ 0 5 ⟩
<span class='Number'>4</span> <span class='Brace'>{</span> <span class='Bracket'>⟨</span><span class='Value'>𝕩</span><span class='Separator'>β‹„</span><span class='Function'>-</span><span class='Value'>𝕨</span><span class='Bracket'>⟩</span> <span class='Brace'>}</span> <span class='Number'>5</span>
⟨ 5 ¯4 ⟩
diff --git a/docs/doc/functional.html b/docs/doc/functional.html
index fbba17dd..6cf2a402 100644
--- a/docs/doc/functional.html
+++ b/docs/doc/functional.html
@@ -116,7 +116,7 @@
0.01831563888873418
</pre>
<p>Another, and probably more common, use of arrays of functions is to apply several different functions to one or more arguments. Here we apply three different functions to the number 9:</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4p+o4oiaLCAy4oq44oi+LCDiiqIt4ouG4p+pIHvwnZWO8J2VqX3CqCA5">↗️</a><pre> <span class='Bracket'>⟨</span><span class='Function'>√</span><span class='Separator'>,</span> <span class='Number'>2</span><span class='Modifier2'>⊸</span><span class='Function'>∾</span><span class='Separator'>,</span> <span class='Function'>⊒-⋆</span><span class='Bracket'>⟩</span> <span class='Brace'>{</span><span class='Function'>π•Ž</span><span class='Value'>𝕩</span><span class='Brace'>}</span><span class='Modifier'>Β¨</span> <span class='Number'>9</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4p+o4oiaLCAy4oq44omNLCDiiqIt4ouG4p+pIHvwnZWO8J2VqX3CqCA5">↗️</a><pre> <span class='Bracket'>⟨</span><span class='Function'>√</span><span class='Separator'>,</span> <span class='Number'>2</span><span class='Modifier2'>⊸</span><span class='Function'>≍</span><span class='Separator'>,</span> <span class='Function'>⊒-⋆</span><span class='Bracket'>⟩</span> <span class='Brace'>{</span><span class='Function'>π•Ž</span><span class='Value'>𝕩</span><span class='Brace'>}</span><span class='Modifier'>Β¨</span> <span class='Number'>9</span>
⟨ 3 ⟨ 2 9 ⟩ ¯8094.083927575384 ⟩
</pre>
<p>The 2-modifier Choose (<code><span class='Modifier2'>β—Ά</span></code>) relies on arrays of functions to… function. It's very closely related to Pick <code><span class='Function'>βŠ‘</span></code>, and in fact when the left operand and the elements of the right operand are all data there's no real difference: Choose returns the constant function <code><span class='Value'>𝕗</span><span class='Function'>βŠ‘</span><span class='Value'>π•˜</span></code>.</p>
diff --git a/docs/doc/group.html b/docs/doc/group.html
index 2240a89c..491fca81 100644
--- a/docs/doc/group.html
+++ b/docs/doc/group.html
@@ -101,8 +101,8 @@
β”˜
</pre>
<p>If we would like a particular index to key correspondence, we can use a fixed left argument to Index Of.</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=Y291bnRyaWVzIOKGkCAiSVQi4oC/IkpQIuKAvyJOTyLigL8iU1Ui4oC/IlVTIgpjb3VudHJpZXMg4oi+y5ggY28gY291bnRyaWVz4oq44oqQ4oq44oqUIGxu">↗️</a><pre> <span class='Value'>countries</span> <span class='Gets'>←</span> <span class='String'>&quot;IT&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;JP&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;NO&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;SU&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;US&quot;</span>
- <span class='Value'>countries</span> <span class='Function'>∾</span><span class='Modifier'>˘</span> <span class='Value'>co</span> <span class='Value'>countries</span><span class='Modifier2'>⊸</span><span class='Function'>⊐</span><span class='Modifier2'>⊸</span><span class='Function'>βŠ”</span> <span class='Value'>ln</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=Y291bnRyaWVzIOKGkCAiSVQi4oC/IkpQIuKAvyJOTyLigL8iU1Ui4oC/IlVTIgpjb3VudHJpZXMg4omNy5ggY28gY291bnRyaWVz4oq44oqQ4oq44oqUIGxu">↗️</a><pre> <span class='Value'>countries</span> <span class='Gets'>←</span> <span class='String'>&quot;IT&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;JP&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;NO&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;SU&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;US&quot;</span>
+ <span class='Value'>countries</span> <span class='Function'>≍</span><span class='Modifier'>˘</span> <span class='Value'>co</span> <span class='Value'>countries</span><span class='Modifier2'>⊸</span><span class='Function'>⊐</span><span class='Modifier2'>⊸</span><span class='Function'>βŠ”</span> <span class='Value'>ln</span>
β”Œβ”€
β•΅ "IT" ⟨⟩
"JP" ⟨⟩
@@ -112,8 +112,8 @@
β”˜
</pre>
<p>However, this solution will fail if there are trailing keys with no values. To force the result to have a particular length you can append that length as a dummy index to each argument, then remove the last group after grouping.</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=Y291bnRyaWVzIOKGqSAiSVQi4oC/IkpQIuKAvyJOTyLigL8iU1Ui4oC/IlVTIuKAvyJaVyIKY291bnRyaWVzIOKIvsuYIGNvIGNvdW50cmllc3vwnZWX4oq44oqQ4oq4KMKvMeKGk+KKlOKXiyjiiL7in5wo4omg8J2VlykpKX0gbG4=">↗️</a><pre> <span class='Value'>countries</span> <span class='Gets'>↩</span> <span class='String'>&quot;IT&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;JP&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;NO&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;SU&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;US&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;ZW&quot;</span>
- <span class='Value'>countries</span> <span class='Function'>∾</span><span class='Modifier'>˘</span> <span class='Value'>co</span> <span class='Value'>countries</span><span class='Brace'>{</span><span class='Value'>𝕗</span><span class='Modifier2'>⊸</span><span class='Function'>⊐</span><span class='Modifier2'>⊸</span><span class='Paren'>(</span><span class='Number'>Β―1</span><span class='Function'>β†“βŠ”</span><span class='Modifier2'>β—‹</span><span class='Paren'>(</span><span class='Function'>∾</span><span class='Modifier2'>⟜</span><span class='Paren'>(</span><span class='Function'>β‰ </span><span class='Value'>𝕗</span><span class='Paren'>)))</span><span class='Brace'>}</span> <span class='Value'>ln</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=Y291bnRyaWVzIOKGqSAiSVQi4oC/IkpQIuKAvyJOTyLigL8iU1Ui4oC/IlVTIuKAvyJaVyIKY291bnRyaWVzIOKJjcuYIGNvIGNvdW50cmllc3vwnZWX4oq44oqQ4oq4KMKvMeKGk+KKlOKXiyjiiL7in5wo4omg8J2VlykpKX0gbG4=">↗️</a><pre> <span class='Value'>countries</span> <span class='Gets'>↩</span> <span class='String'>&quot;IT&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;JP&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;NO&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;SU&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;US&quot;</span><span class='Ligature'>β€Ώ</span><span class='String'>&quot;ZW&quot;</span>
+ <span class='Value'>countries</span> <span class='Function'>≍</span><span class='Modifier'>˘</span> <span class='Value'>co</span> <span class='Value'>countries</span><span class='Brace'>{</span><span class='Value'>𝕗</span><span class='Modifier2'>⊸</span><span class='Function'>⊐</span><span class='Modifier2'>⊸</span><span class='Paren'>(</span><span class='Number'>Β―1</span><span class='Function'>β†“βŠ”</span><span class='Modifier2'>β—‹</span><span class='Paren'>(</span><span class='Function'>∾</span><span class='Modifier2'>⟜</span><span class='Paren'>(</span><span class='Function'>β‰ </span><span class='Value'>𝕗</span><span class='Paren'>)))</span><span class='Brace'>}</span> <span class='Value'>ln</span>
β”Œβ”€
β•΅ "IT" ⟨⟩
"JP" ⟨⟩
diff --git a/docs/doc/join.html b/docs/doc/join.html
index 62f478ee..d9cac584 100644
--- a/docs/doc/join.html
+++ b/docs/doc/join.html
@@ -67,7 +67,7 @@ ERROR
</span>ERROR
</pre>
<p>However, Join has higher-dimensional uses as well. Given a rank-<code><span class='Value'>m</span></code> array of rank-<code><span class='Value'>n</span></code> arrays (requiring <code><span class='Value'>m</span><span class='Function'>≀</span><span class='Value'>n</span></code>), it will merge arrays along their first <code><span class='Value'>m</span></code> axes. For example, if the argument is a matrix of matrices representing a <a href="https://en.wikipedia.org/wiki/Block_matrix">block matrix</a>, Join will give the corresponding unblocked matrix as its result.</p>
-<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oqiIG0g4oaQICgz4oC/MeKIvuKMnDTigL8y4oC/NSkg4qWKwqggMuKAvzPipYrihpU2CuKIviBtICAjIEpvaW4gYWxsIHRoYXQgdG9nZXRoZXI=">↗️</a><pre> <span class='Function'>⊒</span> <span class='Value'>m</span> <span class='Gets'>←</span> <span class='Paren'>(</span><span class='Number'>3</span><span class='Ligature'>β€Ώ</span><span class='Number'>1</span><span class='Function'>∾</span><span class='Modifier'>⌜</span><span class='Number'>4</span><span class='Ligature'>β€Ώ</span><span class='Number'>2</span><span class='Ligature'>β€Ώ</span><span class='Number'>5</span><span class='Paren'>)</span> <span class='Function'>β₯Š</span><span class='Modifier'>Β¨</span> <span class='Number'>2</span><span class='Ligature'>β€Ώ</span><span class='Number'>3</span><span class='Function'>β₯Šβ†•</span><span class='Number'>6</span>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oqiIG0g4oaQICgz4oC/MeKJjeKMnDTigL8y4oC/NSkg4qWKwqggMuKAvzPipYrihpU2CuKIviBtICAjIEpvaW4gYWxsIHRoYXQgdG9nZXRoZXI=">↗️</a><pre> <span class='Function'>⊒</span> <span class='Value'>m</span> <span class='Gets'>←</span> <span class='Paren'>(</span><span class='Number'>3</span><span class='Ligature'>β€Ώ</span><span class='Number'>1</span><span class='Function'>≍</span><span class='Modifier'>⌜</span><span class='Number'>4</span><span class='Ligature'>β€Ώ</span><span class='Number'>2</span><span class='Ligature'>β€Ώ</span><span class='Number'>5</span><span class='Paren'>)</span> <span class='Function'>β₯Š</span><span class='Modifier'>Β¨</span> <span class='Number'>2</span><span class='Ligature'>β€Ώ</span><span class='Number'>3</span><span class='Function'>β₯Šβ†•</span><span class='Number'>6</span>
β”Œβ”€
β•΅ β”Œβ”€ β”Œβ”€ β”Œβ”€
β•΅ 0 0 0 0 β•΅ 1 1 β•΅ 2 2 2 2 2