diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-07-24 22:47:46 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-07-24 22:47:46 -0400 |
| commit | a17782ce2ec31709ce30edb3d96fe2f3a9a6ed1f (patch) | |
| tree | b601681b2282f1a51042f8faf5bfe0e0242c0c31 /docs/doc/take.html | |
| parent | 436bf368830c828f8008bf55632e2bb4c2a2578f (diff) | |
Documentation on fill elements
Diffstat (limited to 'docs/doc/take.html')
| -rw-r--r-- | docs/doc/take.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/doc/take.html b/docs/doc/take.html index bf54a147..2126479d 100644 --- a/docs/doc/take.html +++ b/docs/doc/take.html @@ -37,7 +37,7 @@ <ul> <li><code><span class='Value'>𝕩</span></code> can be an atom, or array of any rank (the result will be an array).</li> <li><code><span class='Value'>𝕨</span></code> can be negative to take or drop from the end instead of the beginning.</li> -<li>For Take, if <code><span class='Value'>𝕨</span></code> is larger than the length of <code><span class='Value'>𝕩</span></code>, then fills are added.</li> +<li>For Take, if <code><span class='Value'>𝕨</span></code> is larger than the length of <code><span class='Value'>𝕩</span></code>, then <a href="fill.html">fills</a> are added.</li> <li><code><span class='Value'>𝕨</span></code> can have multiple numbers corresponding to leading axes of <code><span class='Value'>𝕩</span></code>.</li> <li><code><span class='Value'>𝕨</span></code> is allowed to be longer than the rank of <code><span class='Value'>𝕩</span></code>; <code><span class='Value'>𝕩</span></code> will be extended to fit.</li> </ul> @@ -56,7 +56,7 @@ ell" ┘ </pre> -<p>If <code><span class='Value'>𝕨</span></code> is too large it's usually not a problem. For Take, fill elements are added to the end to bring <code><span class='Value'>𝕩</span></code> up to the required length—although this <em>will</em> fail if <code><span class='Value'>𝕩</span></code> has no fill element. For Drop, the result is an empty array.</p> +<p>If <code><span class='Value'>𝕨</span></code> is too large it's usually not a problem. For Take, <a href="fill.html">fill elements</a> are added to the end to bring <code><span class='Value'>𝕩</span></code> up to the required length—although this <em>will</em> fail if <code><span class='Value'>𝕩</span></code> has no fill element. For Drop, the result is an empty array.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oaVNgoKMTAg4oaRIOKGlTYKCjEwIOKGkyDihpU2CgriiaIgNSDihpMg4oaVM+KAvznigL8y">↗️</a><pre> <span class='Function'>↕</span><span class='Number'>6</span> ⟨ 0 1 2 3 4 5 ⟩ |
