FYI there are `uniq`, `uniqstr` and `uniqnum` functions from List::Util which does this silghtly differently then `unique` from Array::Utils.
If the problem you're dealing with requires you to maintain the order of elements in `unique @a` to be the same as their first occurance in `@a`, then the functions from List::Util can help you.
FYI there are `uniq`, `uniqstr` and `uniqnum` functions from List::Util which does this silghtly differently then `unique` from Array::Utils.
ReplyDeleteIf the problem you're dealing with requires you to maintain the order of elements in `unique @a` to be the same as their first occurance in `@a`, then the functions from List::Util can help you.
Ah, good to know. Thanks!
Delete