aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-12-09 10:42:35 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-12-09 10:42:35 -0500
commite230f8a9045a7ab12cb6c5151b0cf623c3135064 (patch)
treef6b46f136d83832f0a5baae10d76cee7ab3d1f39
parenteed43aa900d79e515045ea5398d980a42ec758a6 (diff)
Fix reference to First using fill in fill specification
-rw-r--r--docs/spec/inferred.html2
-rw-r--r--spec/inferred.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/spec/inferred.html b/docs/spec/inferred.html
index 4dfc7f34..26df5b2d 100644
--- a/docs/spec/inferred.html
+++ b/docs/spec/inferred.html
@@ -69,7 +69,7 @@
</table>
<p>Additionally, the identity of <code><span class='Function'>∾</span><span class='Modifier'>˝</span></code> must be recognized: if <code><span class='Number'>0</span><span class='Function'>=β‰ </span><span class='Value'>𝕩</span></code> and <code><span class='Number'>1</span><span class='Function'>&lt;=</span><span class='Value'>𝕩</span></code>, then <code><span class='Function'>∾</span><span class='Modifier'>˝</span><span class='Value'>𝕩</span></code> is <code><span class='Paren'>(</span><span class='Number'>0</span><span class='Function'>∾</span><span class='Number'>2</span><span class='Function'>↓≒</span><span class='Value'>𝕩</span><span class='Paren'>)</span><span class='Function'>β₯Š</span><span class='Value'>𝕩</span></code>. If <code><span class='Number'>1</span><span class='Function'>==</span><span class='Value'>𝕩</span></code>, then there is no identity element, as the result of <code><span class='Function'>∾</span></code> always has rank at least 1, but the cell rank is 0.</p>
<h2 id="fill-elements"><a class="header" href="#fill-elements">Fill elements</a></h2>
-<p>Any BQN array can have a <em>fill element</em>, which is a sort of &quot;default&quot; value for the array. The reference implementations use <code><span class='Function'>Fill</span></code> to access this element, and it is used primarily for Take (<code><span class='Function'>↑</span></code>), First (<code><span class='Function'>βŠ‘</span></code>), and Nudge (<code><span class='Function'>Β«</span></code>, <code><span class='Function'>Β»</span></code>). One way to extract the fill element of an array <code><span class='Value'>a</span></code> in BQN is <code><span class='Function'>βŠ‘</span><span class='Number'>0</span><span class='Function'>β₯Š</span><span class='Value'>a</span></code>.</p>
+<p>Any BQN array can have a <em>fill element</em>, which is a sort of &quot;default&quot; value for the array. The reference implementations use <code><span class='Function'>Fill</span></code> to access this element, and it is used primarily for Take (<code><span class='Function'>↑</span></code>) and Nudge (<code><span class='Function'>Β«</span></code>, <code><span class='Function'>Β»</span></code>). One way to extract the fill element of an array <code><span class='Value'>a</span></code> in BQN is <code><span class='Function'>βŠ‘Β»</span><span class='Number'>1</span><span class='Function'>↑β₯Š</span><span class='Value'>a</span></code>.</p>
<p>A fill element can be either <code><span class='Number'>0</span></code>, <code><span class='String'>' '</span></code>, or an array of valid fill elements. If the fill element is an array, then it may also have a fill element (since it is an ordinary BQN array). The fill element is meant to describe the shared structure of the elements of an array: for example, the fill element of an array of numbers should be <code><span class='Number'>0</span></code>, while the fill element for an array of variable-length lists should probably be <code><span class='Bracket'>⟨⟩</span></code>. However, the fill element, unlike other inferred properties, does not satisfy any particular constraints that relate it to its array. The fill element of a primitive's result, including functions derived from primitive modifiers, must depend only on its inputs.</p>
<p>In addition to the requirements below, the fill element for the value of a string literal is <code><span class='String'>' '</span></code>.</p>
<h3 id="required-functions"><a class="header" href="#required-functions">Required functions</a></h3>
diff --git a/spec/inferred.md b/spec/inferred.md
index 0be0cc6c..b3fef141 100644
--- a/spec/inferred.md
+++ b/spec/inferred.md
@@ -32,7 +32,7 @@ Additionally, the identity of `∾˝` must be recognized: if `0=≠𝕩` and `1<
## Fill elements
-Any BQN array can have a *fill element*, which is a sort of "default" value for the array. The reference implementations use `Fill` to access this element, and it is used primarily for Take (`↑`), First (`βŠ‘`), and Nudge (`Β«`, `Β»`). One way to extract the fill element of an array `a` in BQN is `βŠ‘0β₯Ša`.
+Any BQN array can have a *fill element*, which is a sort of "default" value for the array. The reference implementations use `Fill` to access this element, and it is used primarily for Take (`↑`) and Nudge (`Β«`, `Β»`). One way to extract the fill element of an array `a` in BQN is `βŠ‘Β»1↑β₯Ša`.
A fill element can be either `0`, `' '`, or an array of valid fill elements. If the fill element is an array, then it may also have a fill element (since it is an ordinary BQN array). The fill element is meant to describe the shared structure of the elements of an array: for example, the fill element of an array of numbers should be `0`, while the fill element for an array of variable-length lists should probably be `⟨⟩`. However, the fill element, unlike other inferred properties, does not satisfy any particular constraints that relate it to its array. The fill element of a primitive's result, including functions derived from primitive modifiers, must depend only on its inputs.