aboutsummaryrefslogtreecommitdiff
path: root/help/transpose_dyadtranspose.md
diff options
context:
space:
mode:
Diffstat (limited to 'help/transpose_dyadtranspose.md')
-rw-r--r--help/transpose_dyadtranspose.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/help/transpose_dyadtranspose.md b/help/transpose_dyadtranspose.md
new file mode 100644
index 00000000..d3db90ab
--- /dev/null
+++ b/help/transpose_dyadtranspose.md
@@ -0,0 +1,27 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/transpose_dyadtranspose.html).*
+
+# Circle Backslash (`⍉`)
+
+## `⍉ 𝕩`: Transpose
+
+Move the first axis of `𝕩` to the end.
+
+ a ← 3‿3 ⥊ ↕9
+
+ ⍉ a
+
+ b ← 1‿2‿3 ⥊ ↕6
+
+ ≢⍉ b
+
+
+
+## `𝕨 ⍉ 𝕩`: Dyad
+
+Rearrange the axes of `𝕩` as per the axis indices in `𝕨`.
+
+ ≢ a ← 2‿3‿4‿5‿6 ⥊1
+
+ ≢ 1‿3‿2‿0‿4 ⍉ a
+
+