develooper Front page | perl.perl6.language | Postings from September 2001

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

Thread Previous
From:
Bryan C . Warnock
Date:
September 2, 2001 17:31
Subject:
Re: LangSpec: Statements and Blocks [first,last]
Message ID:
0109022028310A.05284@wakko.idiocity.nut
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 that.

iterator (list) {
    code;
}
# <- If you are here, you just completed your last iteration.
# (Unless you goto'd somewhere else, obviously.  But that would
# skip the callback, too.)

-- 
Bryan C. Warnock
bwarnock@capita.com

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About