aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/fill.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-11 14:06:02 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-11 14:06:02 -0400
commit65eef4fade5eb426dae01d480f383b8a30b23071 (patch)
treed5d98e372f68c928b7aaa2741f26cf89d5745ffc /docs/doc/fill.html
parente64ea0c5da34a59393e3b539cc1811ac63dfe3f4 (diff)
Change "BQN / main" in header to "(github) / BQN"
Diffstat (limited to 'docs/doc/fill.html')
-rw-r--r--docs/doc/fill.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/fill.html b/docs/doc/fill.html
index e77872c4..b4ac35ef 100644
--- a/docs/doc/fill.html
+++ b/docs/doc/fill.html
@@ -3,7 +3,7 @@
<link href="../style.css" rel="stylesheet"/>
<title>BQN: Fill elements</title>
</head>
-<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a> / <a href="../index.html">main</a> / <a href="index.html">doc</a></div>
+<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">doc</a></div>
<h1 id="fill-elements">Fill elements</h1>
<p>A few array operations need an array element to use when no existing element applies. BQN tries to maintain a &quot;default&quot; element for every array, known as a fill element, for this purpose. If it's known, the fill element is a nested array structure where each atom is either <code><span class='Number'>0</span></code> or <code><span class='String'>' '</span></code>. If no fill is known, a function that requests it results in an error.</p>
<p>Fills are used by <a href="take.html">Take</a> (<code><span class='Function'>โ†‘</span></code>) when a value in <code><span class='Value'>๐•จ</span></code> is larger than the corresponding length in <code><span class='Value'>๐•ฉ</span></code>, by the two <a href="shift.html">Nudge</a> functions (<code><span class='Function'>ยปยซ</span></code>) when <code><span class='Value'>๐•ฉ</span></code> is non-empty, by <a href="couple.html">Merge</a> (<code><span class='Function'>&gt;</span></code>) when <code><span class='Value'>๐•ฉ</span></code> is empty, and by <a href="reshape.html">Reshape</a> (<code><span class='Function'>โฅŠ</span></code>) when <code><span class='Value'>๐•จ</span></code> contains <code><span class='Function'>โ†‘</span></code>. Except for these specific cases, the fill value an array has can't affect the program. The result of <a href="match.html">Match</a> (<code><span class='Function'>โ‰ก</span></code>) doesn't depend on fills, and any attempt to compute a fill can't cause side effects.</p>