Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Jerome Quelin
On 10/07/29 07:23 -0500, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6. The tarball for the July 2010 release is > available from

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Kiffin Gish
Good stuff, let's celebrate! On Thu, 2010-07-29 at 07:23 -0500, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6. The tarball for the July 2010 release is

Re: Array membership test?

2010-07-29 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 01:52:18AM +0200, Jonathan Worthington wrote: > Mark J. Reed wrote: > >Possibly a FAQ, but is there a simple way of asking if an item is > >contained in an array? > > > my @x = 1,2,3; say ?...@x.grep(2); say ?...@x.grep(4); > 1 > 0 > > Though more efficient would be: >

Re: Array membership test?

2010-07-29 Thread Mark J. Reed
On Thu, Jul 29, 2010 at 7:52 PM, Jonathan Worthington wrote: > Note that grep doesn't have to take a closure, but can also take just the > value you're looking for... > >> my @x = 1,2,3; say ?...@x.grep(2); say ?...@x.grep(4); > 1 > 0 Hm. could have sworn I'd tried that and it didn't work. > Th

Re: Array membership test?

2010-07-29 Thread yary
On Thu, Jul 29, 2010 at 4:46 PM, Mark J. Reed wrote: > $x ~~ any(@array) I think this came up recently, and that's the way! -y

Re: Array membership test?

2010-07-29 Thread Jonathan Worthington
Mark J. Reed wrote: Possibly a FAQ, but is there a simple way of asking if an item is contained in an array? I know of $x ~~ any(@array) and @array.grep({ $_ ~~ $x}), but those both seem a bit complicated for a conceptually simple test, so I'm wondering if I'm missing something. Note that grep d

Array membership test?

2010-07-29 Thread Mark J. Reed
Possibly a FAQ, but is there a simple way of asking if an item is contained in an array? I know of $x ~~ any(@array) and @array.grep({ $_ ~~ $x}), but those both seem a bit complicated for a conceptually simple test, so I'm wondering if I'm missing something. In other langs there's a keyword [ite

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread Aaron Sherman
On Wed, Jul 28, 2010 at 9:24 PM, Darren Duncan wrote: > Jon Lang wrote: > >> I don't know enough about Unicode to suggest how to solve this. >> >> Thankfully, I know little enough to take up the challenge ;-) > All I can >>> say is that my example above should never return a valid Range object

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Gabor Szabo
Congratulations and thank you! I have started to collect the links to the press coverage of the release: http://www.perlfoundation.org/perl6/index.cgi?rakudo_star_press Please help me collect all the important links! Gabor

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread yary
On Thu, Jul 29, 2010 at 5:15 AM, Leon Timmermans wrote: > On Thu, Jul 29, 2010 at 3:24 AM, Darren Duncan > wrote: >> Some possible examples of customization: >> >> $foo ~~ $a..$b :QuuxNationality # just affects this one test > > I like that > >> $bar = 'hello' :QuuxNationality # applies anyw

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Xiao Yafeng
Congratulations! On Thu, Jul 29, 2010 at 8:23 PM, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6.  The tarball for the July 2010 release is > available f

Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the July 2010 release of "Rakudo Star", a useful and usable distribution of Perl 6. The tarball for the July 2010 release is available from . Rakudo Star is aimed at "early adopter

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread Leon Timmermans
On Thu, Jul 29, 2010 at 3:24 AM, Darren Duncan wrote: > Some possible examples of customization: > >  $foo ~~ $a..$b :QuuxNationality  # just affects this one test I like that >  $bar = 'hello' :QuuxNationality  # applies anywhere the Str value is used > What if you compare a QuuxNationality St