Group: Difference between revisions

412 bytes added ,  1 year ago
"Paragraph cleanup"
No edit summary
("Paragraph cleanup")
 
(6 intermediate revisions by 2 users not shown)
Line 19:
"abrcd"
</pre>{{Works in|ngn/k}}
 
In K2 and K3, the group primitive returns a nested array:<pre>
="abracadabra"
(0 3 5 7 10
1 8
2 9
,4
,6)
</pre>{{Works in|Kona}}
 
In order to mimic the K6 behaviour, you can use [[distinct]]: <code>{(?x)!=x}</code> to get a dict.
 
<pre>
{(?:x)!=x}`a`a`b`c
.((`a
0 1
)
(`b
,2
)
(`c
,3
))
</pre>{{Works in|Kona}}
 
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
720

edits