aboutsummaryrefslogtreecommitdiff
path: root/help/indices_replicate.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 15:10:38 -0500
committerGitHub <noreply@github.com>2022-01-19 15:10:38 -0500
commitce364aeae795ca8a8e46e653b8024ac5a9ad0982 (patch)
tree7af238dbdb370a768f965066dadadd144cbd70f7 /help/indices_replicate.md
parent8f0aa14fa695ff3aa3b3ed96c02fdb2ab99f272c (diff)
parentedddb9be0aa1f03c8608d3dabf7ccfea3fdde206 (diff)
Merge pull request #55 from razetime/master
Simple help pages for Primitive Symbols
Diffstat (limited to 'help/indices_replicate.md')
-rw-r--r--help/indices_replicate.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/help/indices_replicate.md b/help/indices_replicate.md
new file mode 100644
index 00000000..9ffad842
--- /dev/null
+++ b/help/indices_replicate.md
@@ -0,0 +1,25 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/indices_replicate.html).*
+
+# Solidus (`/`)
+
+## `/ 𝕩`: Indices
+
+Repeat the index of each element in `𝕩` by the element's value. `𝕩` must be rank 1.
+
+ / 1‿2‿3
+
+ / 1‿0‿1
+
+
+
+## `𝕨 / 𝕩`: Replicate
+
+Repeat each major cell in `𝕩` by the corresponding element in `𝕨`.
+
+Atomic `𝕨` applies to all elements.
+
+ 3 / "copy"
+
+ 1‿0‿1 / 1‿2‿3
+
+