From 59f4d13ef3ca09dd17bc561a303aabd2432fbe41 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 7 Jun 2021 22:22:38 -0400 Subject: Group graphic --- docs/doc/group.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs/doc') diff --git a/docs/doc/group.html b/docs/doc/group.html index 2b03e5fa..c4471132 100644 --- a/docs/doc/group.html +++ b/docs/doc/group.html @@ -6,6 +6,28 @@

Group

BQN replaces the Key operator from J or Dyalog APL, and many forms of partitioning, 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.

+ + + + 0¯1¯120"zero""one""two""three""four""zero""four""three"012 + + 𝕨 + 𝕩 + 𝕨𝕩 + + + + + + + + + + + + + +

Definition

Group operates on a list of atomic-number indices 𝕨 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.

↗️
    01201  "abcde"  # Corresponding indices and values
-- 
cgit v1.2.3