blob: 77823ed0919a7fe35a668d2e10af00d8e02561b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/occurrencecount_progressiveindexof.html).*
# Square Original Of or Equal To (`⊒`)
## `⊒ 𝕩`: Occurrence Count
[→full documentation](../doc/selfcmp.md#occurrence-count)
Number of times each major cell of `𝕩` has occurred before the current position.
⊒ 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
[→full documentation](../doc/search.md#progressive-index-of)
Index of the first unused match of each major cell of `𝕩` in `𝕨`. If there are no more matches left, the length of `𝕨` is placed in that position.
"aaa" ⊒ "aaaaa"
"aaabb" ⊒ "ababababab"
|