diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-01-19 15:10:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-19 15:10:38 -0500 |
| commit | ce364aeae795ca8a8e46e653b8024ac5a9ad0982 (patch) | |
| tree | 7af238dbdb370a768f965066dadadd144cbd70f7 /help/groupindices_group.md | |
| parent | 8f0aa14fa695ff3aa3b3ed96c02fdb2ab99f272c (diff) | |
| parent | edddb9be0aa1f03c8608d3dabf7ccfea3fdde206 (diff) | |
Merge pull request #55 from razetime/master
Simple help pages for Primitive Symbols
Diffstat (limited to 'help/groupindices_group.md')
| -rw-r--r-- | help/groupindices_group.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/help/groupindices_group.md b/help/groupindices_group.md new file mode 100644 index 00000000..ee0e9762 --- /dev/null +++ b/help/groupindices_group.md @@ -0,0 +1,31 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/groupindices_group.html).* + +# Square Cup (`⊔`) + +## `⊔ 𝕩`: Group Indices + +Group the indices of the major cells of `𝕩` by their respective values. + +## `𝕩` must consist of integers. Groups start from 0. + + ⊔ 4‿5‿6‿6‿4‿7‿5 + + (↕8) ≍ ⊔ 4‿5‿6‿6‿4‿7‿5 + + + +## `𝕨 ⊔ 𝕩`: Group + +Group the major cells of `𝕩` by their respective indices in `𝕨`. + +If an element corresponds to `¯1`, it is excluded from grouping. + +An extra element can be added to the end of `𝕨` to specify length of the result. + + 1‿0‿1‿2‿2‿3‿3 ⊔ 4‿5‿6‿6‿4‿7‿5 + + 1‿0‿1‿¯1‿¯1‿3‿3 ⊔ 4‿5‿6‿6‿4‿7‿5 + + 1‿0‿1‿¯1‿¯1‿3‿3‿10 ⊔ 4‿5‿6‿6‿4‿7‿5 + + |
