Re: LangSpec: Statements and Blocks [first,last]

2001-09-03 Thread Damian Conway
iVAN wrote: > As we read in Damian Conway- Perl6-notes, there will be "...may be..." (Remember, I'm only the shambling henchman ;-) > a var-iterator that can be used to see how many times the cycle has > been "traversed" i.e. > > foreach my $el (@ary) { >.. do something

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread Bryan C . Warnock
On Sunday 02 September 2001 06:27 pm, raptor wrote: > ]- yep I didn't thougth about that I can be sure I'm at the last > iteration only with some sort of 'callback' which will be called at the > exit of the loop... but not as some sort of generalised-check condition.. Umm, it's simpler than t

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread raptor
| I don't know if (and if so, how) you would see if you were on the last | iteration. (And would that be last, as in the very last argument passed in, | or last, as in you're not going to iterate again?) ]- yep I didn't thougth about that I can be sure I'm at the last iteration only with some

RE: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread Sterin, Ilya
> -Original Message- > From: raptor [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 02, 2001 1:47 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: LangSpec: Statements and Blocks [first,last] > > > hi, > > As we read in Damian Con

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread Bryan C . Warnock
On Sunday 02 September 2001 01:47 pm, raptor wrote: > As we read in Damian Conway- Perl6-notes, there will by a var-iterator > that can be used to see how many times the cycle has been "traversed" i.e. > > foreach my $el (@ary) { >.. do something > print $#; <--- print the index (or

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread raptor
hi, As we read in Damian Conway- Perl6-notes, there will by a var-iterator that can be used to see how many times the cycle has been "traversed" i.e. foreach my $el (@ary) { .. do something print $#; <--- print the index (or print $i ) } shall we have : foreach my $el (@ary) {