aboutsummaryrefslogtreecommitdiff
path: root/help/prefixes_take.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-24 17:06:40 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-24 17:06:40 -0500
commitc9bc3e80280fd8a38f6297de80196dcbff9c28d9 (patch)
tree6be559af4ebeab26168836a8fb4d0b4734ecee85 /help/prefixes_take.md
parent3d78f125185ce47784245d6619f2878a6ad1b587 (diff)
Remove trailing whitespace from help/ markdown sources
Diffstat (limited to 'help/prefixes_take.md')
-rw-r--r--help/prefixes_take.md20
1 files changed, 9 insertions, 11 deletions
diff --git a/help/prefixes_take.md b/help/prefixes_take.md
index 6b87d124..74ae470e 100644
--- a/help/prefixes_take.md
+++ b/help/prefixes_take.md
@@ -1,27 +1,27 @@
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/prefixes_take.html).*
# Up Arrow (`↑`)
-
+
## `↑ 𝕩`: Prefixes
-
+
Prefixes of array `𝕩` along its first axis.
-
+
↑ 1‿2‿3‿4
a ← 3‿3 ⥊ ↕9
↑ a
-
-
+
+
## `𝕨 ↑ 𝕩`: Take
-
+
For each integer in `𝕨`, take that many elements from each dimension of `𝕩`.
-
+
Negative numbers take from the end.
-
+
If any of the elements in `𝕨` are greater than the length of their respective dimension, the dimension is extended with a fill value.
-
+
3 ↑ 1‿3‿5‿67
b ← 4‿4 ⥊ ↕16
@@ -31,5 +31,3 @@ If any of the elements in `𝕨` are greater than the length of their respective
5‿5 ↑ b
3‿¯3 ↑ b
-
-