On Sat, Aug 30, 2008 at 4:22 AM, Dave Whipp [EMAIL PROTECTED] wrote:
Lets say I want to find the 5th smallest element in an array. I might
write:
@array.sort.[4];
How does the implementation of the sort function know that I just want to
5th item (and thus choose an appropriate
I have changed files at http://www.dlugosz.com/Perl6/offerings/
waiting for someone in authority to merge.
In S05, I found this regarding the generalized repetition specifier:
alt ** '|'# repetition controlled by presence of character
I tried it out with
rule thislist { alpha ** '|' };
and got (with Rakudo):
perl6regex parse error: Error in closure quantifier at offset 28, found '''
Stephen Simmons wrote:
In S05, I found this regarding the generalized repetition specifier:
alt ** '|'# repetition controlled by presence of character
I tried it out with
rule thislist { alpha ** '|' };
and got (with Rakudo):
perl6regex parse error: Error in closure
On Aug 30, 8:47 am, [EMAIL PROTECTED] (John M. Dlugosz) wrote:
Have the sort function simply return a lazy list object. When the [4]
is called on that object, it knows to do as much work as needed, and can
leave the rest as lazy.
That may be half the answer, but simply making the decision
In S04, the Exceptions section mentions that $! contains multiple exceptions.
So what type is it? Why isn't it @! ? I says that they are thrown as a
single new exception. So what type is that new exception? A multi-exception of
some kind?
How do you get multiple pending exceptions in the
Has the err operator, as a low-precidence version of //, been removed? It's
not mentioned in S03, and the semantics of orelse is different. Is orelse
supposed to be a direct replacement, meaning if you ignore the parameter thing
then it doesn't change anything?
dpuu dave-at-whipp.name |Perl 6| wrote:
On Aug 30, 8:47 am, [EMAIL PROTECTED] (John M. Dlugosz) wrote:
Have the sort function simply return a lazy list object. When the [4]
is called on that object, it knows to do as much work as needed, and can
leave the rest as lazy.
That may be