diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-11 08:19:46 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-11 08:19:46 -0400 |
| commit | 5002994789636f546e5de51911c1a3e3a7ee1dd3 (patch) | |
| tree | 65f42b560bbce0605c49760e5a7a1634b9c5d3c8 | |
| parent | 39353546bbd194cc7f21897b769e0900daee26d8 (diff) | |
Use ⍷ for Unique
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | doc/group.md | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -126,7 +126,7 @@ Glyph(s) | Meaning | `⊐` | | [Index of](https://aplwiki.com/wiki/Index_Of) | `⊒` | Occurrence Count | Progressive Index of | `∊` | [Unique Mask](https://aplwiki.com/wiki/Nub_Sieve) | Member of -| `⍷` | | Find +| `⍷` | [Deduplicate](https://aplwiki.com/wiki/Unique) | Find | `⊔` | [Group Indices](doc/group.md) | [Group](doc/group.md) ### Modifiers and compositions diff --git a/doc/group.md b/doc/group.md index 014b5f5d..1d9eb3f4 100644 --- a/doc/group.md +++ b/doc/group.md @@ -6,7 +6,7 @@ The BQN prototype does not implement this function: instead it uses `⊔` for a ⊔↩((↕1+(>⌈´))=¨<)∘⊣ /¨⟜< ↕∘≠⍠⊢ -Once defined, the old BQN Key (dyadic) is `∪⊸⊐⊸⊔` and Group (monadic) is `∪⊸⊐⊔↕∘≠`. Cut on matching-length arguments is `` +`⊸⊔ ``. +Once defined, the old BQN Key (dyadic) is `⍷⊸⊐⊸⊔` and Group (monadic) is `⍷⊸⊐⊔↕∘≠` using the Deduplicate or Unique Cells function `⍷` (BQN2NGN spells it `∪`). Cut on matching-length arguments is `` +`⊸⊔ ``. ## Definition @@ -89,11 +89,11 @@ Group can even be implemented with the same techniques as a bucket sort, which c ## Applications -The obvious application of Group is to group some values according to a known or computed property. If this property isn't an integer, it can be turned into one using Unique and Index Of (the combination `∪⊸⊐` has been called "self-classify"). +The obvious application of Group is to group some values according to a known or computed property. If this property isn't an integer, it can be turned into one using Unique and Index Of (the combination `⍷⊸⊐` has been called "self-classify"). ln ← "Phelps"‿"Latynina"‿"Bjørgen"‿"Andrianov"‿"Bjørndalen" co ← "US" ‿"SU" ‿"NO" ‿"SU" ‿"NO" - ⥊˘ co ∪⊸⊐⊸⊔ ln + ⥊˘ co ⍷⊸⊐⊸⊔ ln ┌ [ [ Phelps ] ] [ [ Latynina ] [ Andrianov ] ] |
