aboutsummaryrefslogtreecommitdiff
path: root/help/occcount_progindex.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/occcount_progindex.md
parent8f0aa14fa695ff3aa3b3ed96c02fdb2ab99f272c (diff)
parentedddb9be0aa1f03c8608d3dabf7ccfea3fdde206 (diff)
Merge pull request #55 from razetime/master
Simple help pages for Primitive Symbols
Diffstat (limited to 'help/occcount_progindex.md')
-rw-r--r--help/occcount_progindex.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/help/occcount_progindex.md b/help/occcount_progindex.md
new file mode 100644
index 00000000..649869c8
--- /dev/null
+++ b/help/occcount_progindex.md
@@ -0,0 +1,23 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/occcount_progindex.html).*
+
+# Square Original Of or Equal To (`⊒`)
+
+## `⊒ 𝕩`: Occurrence Count
+
+Number of times each major cell of `𝕩` appears before itself.
+
+ ⊒ 2‿7‿1‿8‿1‿7‿1‿8‿2‿8‿4
+
+ ≍⟜⊒ 2‿7‿1‿8‿1‿7‿1‿8‿2‿8‿4
+
+
+
+## `𝕨 ⊒ 𝕩`: Progressive Index Of
+
+Index of the first unused match of each major cell of `𝕩` in `𝕨`. If there are no more matches left, length of `𝕨` is placed in that position.
+
+ "aaa" ⊒ "aaaaa"
+
+ "aaabb" ⊒ "ababababab"
+
+