RosettaCodeData/Task/Remove-duplicate-elements/Inform-7/remove-duplicate-elements.inf

6 lines
193 B
INI
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
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.