From 59f4d13ef3ca09dd17bc561a303aabd2432fbe41 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 7 Jun 2021 22:22:38 -0400 Subject: Group graphic --- doc/group.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'doc/group.md') diff --git a/doc/group.md b/doc/group.md index dd5e8da9..946e7256 100644 --- a/doc/group.md +++ b/doc/group.md @@ -4,6 +4,47 @@ 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. + + ## Definition Group operates on a list of atomic-number [indices](indices.md) `𝕨` and an array `𝕩`, treated as a list of its major cells, to produce a list of groups, each containing some of the cells from `𝕩`. The two arguments have the same length, and each cell in `𝕩` is paired with the index in `𝕨` at the same position, which indicates which result group should include that cell. -- cgit v1.2.3