Distinct: Difference between revisions

From The K Language Wiki
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{primitive}}
{{primitive|?x}}
'''Distinct''', a.k.a. '''unique''' or '''uniq''', returns a copy of its argument without duplicate items (according to the definition of [[match]]). K9 additionally sorts the result.
'''Distinct''', a.k.a. '''unique''' or '''uniq''', returns a copy of its argument without duplicate items (according to the definition of [[match]]). K9 additionally sorts the result.



Revision as of 19:05, 8 July 2021

Distinct
?x

Distinct, a.k.a. unique or uniq, returns a copy of its argument without duplicate items (according to the definition of match). K9 additionally sorts the result.

 ?"abracadabra"
"abrcd"
 ?"abracadabra" /k9
"abcdr"