diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-14 22:45:53 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-14 22:45:53 -0400 |
| commit | a4d720d76b4772983a1920758bf71b93903b5243 (patch) | |
| tree | 6ed615462ac7a7d4ff69d3e87fcf0b706c13cfa5 /doc | |
| parent | 338f7364b1cf475ad1f7db94e448b7f71bd18624 (diff) | |
Update information about the current state of BQN development
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/group.md | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/doc/group.md b/doc/group.md index e043e5ca..17e05850 100644 --- a/doc/group.md +++ b/doc/group.md @@ -4,12 +4,6 @@ BQN replaces the [Key](https://aplwiki.com/wiki/Key) operator from J or Dyalog APL, and [many forms of partitioning](https://aplwiki.com/wiki/Partition_representations), with a single (ambivalent) Group function `⊔`. This function is somewhat related to the K function `=` of the same name, but results in an array rather than a dictionary. -The BQN prototype does not implement this function: instead it uses `⊔` for a Group/Key function very similar to `{⊂⍵}⌸` in Dyalog APL, and also has a Cut function `\`. The new BQN Group on numeric arguments (equivalently, rank-1 results) can be defined like this: - - ⊔↩((↕1+(>⌈´))=¨<)∘⊣ /¨⟜< ↕∘≠⍠⊢ - -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 Group operates on a numeric list of indices and an array, treated as a list of its major cells or "values", to produce a list of groups, each of which is a selection from those cells. The two arrays have the same length, and each value cell is paired with the index at the same position. That index indicates the result group the cell should go into, with an "index" of ¯1 indicating that it should be dropped and not appear in the result. |
