Re: Learning the "ff" (flipflop) infix operator? (was Re: Raku version of "The top 10 tricks... .")
On Sun, Aug 2, 2020 at 11:14 PM yary wrote: > Issue golf, ff is always evaluating its RHS > > $ raku -e 'say "With ff: ";say ( 1..5 ).grep({False ff .say}); say "With > fff: ";say ( 1..5 ).grep({False fff .say});' > With ff: > 1 > 2 > 3 > 4 > 5 > () > With fff: > () > I haven't looked much at Raku since it was Perl6, but for comparison, here's some Perl 5: $ perl -E 'say "With ..: ";say grep {/nope/ .. say} 1..5; say "With ...: ";say grep {/nope/ ... say} 1..5;' With ..: With ...: Eirik
Re: <<>> question
On Wed, Oct 4, 2017 at 7:06 PM, Andy Bach wrote: > perl6 -e 'my $y=("ab",12,"xx"); print "y=", $y.join(", "), "\n"' > perl6 -e 'my @y=("ab",12,"xx");print "y=", @y.join(", "), "\n"' > This might be a good place to remind folks that perl6 allows interpolation of method calls, so there's no need to split up your string literal like that: > my $y=("ab",12,"xx"); print "y=$y.join(", ")\n"; y=ab, 12, xx True > my @y=("ab",12,"xx"); print "y=@y.join(", ")\n"; y=ab, 12, xx True > ... or, you know ... > my $y=<>; say "y=$y.join(", ")"; y=ab, 12, xx True > my @y=<>; say "y=@y.join(", ")"; y=ab, 12, xx True > Eirik
Re: Logo considerations
jason switzer writes: > [warning: light-hearted humor ahead] > There's also the notion that perl6's scope has creeped to accommodate a > large enough set of ideas. Seems like an appropriate logo: > > http://images.google.com/images?gbv=2&hl=en&q=kitchen+sink I kinda liked that one – back when Emacs did it: http://images.google.com/images?gbv=2&hl=en&q=%22emacs+kitchen+sink+icon%22&btnG=Search+Images ;-) Eirik -- O misbegotten pile of festering aardvark's fewmets! O vile unwashed ill-doer! I blast you with the curse of the mad witch of Wickham! May every boychild born to you , and to your sons, and to your sons' sons, even unto the Seventh Generation, be born male! (well I told you she was mad!).