Subject: | wish: uniq using smart matching |
A variant of 'uniq' which compares using perl's smart-match (~~) operator.
For example
my @a = ([], [], 'a', 'a', 'b');
my @old = uniq @a; # ([], [], 'a', 'b')
my @new = uniq_smart @a; # ([], 'a', 'b')
# because [] ~~ []