diff options
Diffstat (limited to 'docs/doc/fill.html')
| -rw-r--r-- | docs/doc/fill.html | 2 |
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 "default" 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'>></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> |
