Re: Something about the cascade calling of sort() in rakudo.

2010-03-23 Thread Solomon Foster
2010/3/23 Moritz Lenz : > Hi, > > Hongwen Qiu wrote: >> Hi, I'm new to Perl6. And just ran the first example in the perl6 book. >> But, it refused to work. It complains as follows: >> >> Too many positional parameters passed; got 2 but expected between 0 and 1 >> >> I find out that the problem is i

Re: Something about the cascade calling of sort() in rakudo.

2010-03-23 Thread Moritz Lenz
Hi, Hongwen Qiu wrote: > Hi, I'm new to Perl6. And just ran the first example in the perl6 book. > But, it refused to work. It complains as follows: > > Too many positional parameters passed; got 2 but expected between 0 and 1 > > I find out that the problem is in the line: > > my @sorted = @na

Something about the cascade calling of sort() in rakudo.

2010-03-23 Thread Hongwen Qiu
Hi, I'm new to Perl6. And just ran the first example in the perl6 book. But, it refused to work. It complains as follows: Too many positional parameters passed; got 2 but expected between 0 and 1 I find out that the problem is in the line: my @sorted = @names.sort({ %sets{$_} }).sort({ %games{$_