> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > X-Sent: 19 Nov 2002 02:51:54 GMT > Date: Tue, 19 Nov 2002 13:51:56 +1100 > From: Damian Conway <[EMAIL PROTECTED]> > X-Accept-Language: en, en-us > Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > X-SMTPD: qpsmtpd/0.12, http://develooper.com/code/qpsmtpd/ > > Larry wrote: > > > So you can do it any of these ways: > > > > for <$dance> { > > > > for $dance.each { > > > > for each $dance: { > > ^ note colon > > > > Then there's this approach to auto-iteration: > > > > my @dance := Iterator.new(@squares); > > for @dance { > > Okay, so now I need to make sense of the semantics of <...> and > C<for> and coroutines and their combined use. > > Is the following correct? > > ============================================================================== [snip] > ==============================================================================
I like this I<much> better than what you explained before. Most of my problems with two iterators to the same thing in the same scope are gone, as well as the confusions I had about C<for>. Luke