RosettaCodeData/Task/Remove-duplicate-elements/Inform-7/remove-duplicate-elements.inf
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

5 lines
193 B
INI

To decide which list of Ks is (L - list of values of kind K) without duplicates:
let result be a list of Ks;
repeat with X running through L:
add X to result, if absent;
decide on result.