aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-11 08:19:46 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-11 08:19:46 -0400
commit5002994789636f546e5de51911c1a3e3a7ee1dd3 (patch)
tree65f42b560bbce0605c49760e5a7a1634b9c5d3c8 /doc
parent39353546bbd194cc7f21897b769e0900daee26d8 (diff)
Use ⍷ for Unique
Diffstat (limited to 'doc')
-rw-r--r--doc/group.md6
1 files changed, 3 insertions, 3 deletions
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 ] ]