aboutsummaryrefslogtreecommitdiff
path: root/help/rank.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/rank.md
parent8f0aa14fa695ff3aa3b3ed96c02fdb2ab99f272c (diff)
parentedddb9be0aa1f03c8608d3dabf7ccfea3fdde206 (diff)
Merge pull request #55 from razetime/master
Simple help pages for Primitive Symbols
Diffstat (limited to 'help/rank.md')
-rw-r--r--help/rank.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/help/rank.md b/help/rank.md
new file mode 100644
index 00000000..0bbab822
--- /dev/null
+++ b/help/rank.md
@@ -0,0 +1,20 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/rank.html).*
+
+# Circled Horizontal Bar With Notch (`⎉`)
+
+## `𝔽⎉𝕘 𝕩`, `𝕨 𝔽⎉𝕘 𝕩`: Rank
+
+Apply `𝔽` to cells at ranks given in `𝕘`.
+
+The ranks applied are given by the following:
+
+- `⎉ c` Rank-c cells of `𝕩` (monadic) or both arguments (dyadic)
+- `⎉ b‿c` ⍝ Rank-b cells of `𝕨` and rank-c cells of `𝕩` (dyadic)
+- `⎉ a‿b‿c` ⍝ Rank-a cells of `𝕩` (monadic), b-cells of `𝕨` and c-cells of `𝕩` (dyadic)
+
+
+ a ← 3‿2‿4⥊"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+
+ ⌽⎉2 a
+
+