develooper Front page | perl.perl6.language | Postings from February 2004

Re: The Sort Problem: a definitive ruling

Thread Previous | Thread Next
From:
Uri Guttman
Date:
February 19, 2004 20:24
Subject:
Re: The Sort Problem: a definitive ruling
Message ID:
x7r7wql6pk.fsf@mail.sysarch.com
>>>>> "DC" == Damian Conway <damian@conway.org> writes:

  DC> No. But this will work:

  DC> 	sort &infix:<=> @unsorted

my brane hertz!!

so that declares (creates?) an infix op as a code block? and since <=>
is known to take 2 args it is parsed (or multidispatched) as a
comparator block for sort?

amazing how you and luke both came up with the exact same answer. p6
syntax like that is killing me slowly!

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About