Distinct: Difference between revisions
No edit summary |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(6 intermediate revisions by 3 users not shown) | |||
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. |
||
?"abracadabra" |
?"abracadabra" |
||
Line 7: | Line 8: | ||
?"abracadabra" /k9 |
?"abracadabra" /k9 |
||
"abcdr" |
"abcdr" |
||
{x@&(x?x)=!#x} /k9 unsorted unique |
|||
[[Category:Verbs]] |
|||
[[Category:Operator verbs]] |
|||
[[Category:Primitives]] |
Latest revision as of 06:15, 9 July 2022
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"
{x@&(x?x)=!#x} /k9 unsorted unique