develooper Front page | perl.perl6.language | Postings from May 2005

[S29] uniq

Thread Next
Ingo Blechschmidt
May 19, 2005 07:52
[S29] uniq
Message ID:

three quick questions:

Is it intentional that there's no uniq in the current S29[1] draft?
See [2] for Damian saying that uniq is probably in.

I wondered what uniq's default comparator should be, =:=?

Should it be possible to give an own comparator block, similar as with
grep? E.g.
  uniq <a b a a c d>;   # <a b a c d>

  uniq:{ abs $^a == abs $^b } 42, 23, -23, 23, 42
                        # 42, 23, 42



Linux, the choice of a GNU | "The future is here. It's just not widely
generation on a dual AMD   | distributed yet."
Athlon!                    | -- William Gibson

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About