Mark J. Reed wrote:
I really like the factorial example on the wiki page.  That really
gets across the expressiveness of P6, without being too hard to
understand despite its brevity.

sub postfix:<!> { [*] 1..$^n }
say 5!;

WOW!! That *IS* cool. Can you explain to me how it works? I figured out postfix: myself, but the rest is obscure to me.

I do think captures are inherently impressive, but not easy to explain...

Got a link?


Reply via email to