On Mon, Dec 27, 2010 at 10:03 PM, Moritz Lenz wrote:

> or
>
> my $closure = $r1 > $r2 ?? { %matches{$p1}++ } !! { %matches{$p2}++ };
> # invoke it
> $closure();
>


That's very cool. Perl 6 is a functional language with lambdas and
everything.

Daniel.
-- 
No trees were destroyed in the generation of this email, but a large number
of electrons were severely inconvenienced.

Reply via email to