Group: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add group page)
 
No edit summary
Line 1: Line 1:
{{primitive|=x}}
{{primitive|=x}}


The '''group''' primitive, denoted by <code>=</code>, is used to group the indices of an array by the values they represent in the array, returning a dictionary.
The '''group''' primitive, denoted by <code>=</code>, is used to group the indices of an array by the values they represent in the array, returning a dictionary.

Revision as of 17:24, 9 July 2021

Group
=x

The group primitive, denoted by =, is used to group the indices of an array by the values they represent in the array, returning a dictionary.

 =`a`a`b`c`c`d`c`a`a`k
`a`b`c`d`k!(0 1 7 8;,2;3 4 6;,5;,9)