in reply to Perl 6 coroutines (RFC 31)
I also failed to understand the logic of the following example from the RFC:
This does not make sense to me, since $_ is a localized stack-based variable, which should in principle be wrapped up in the saved local context/state. Thus calls to transform_val would be operating on keys, not values.... one could write: %newhash = map {yield transform_key($_); transform_val($_)} +%oldhash; This flattens the %oldhash to a sequence of key/value pairs
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Perl 6 coroutines (RFC 31)
by tilly (Archbishop) on Jul 14, 2001 at 22:41 UTC | |
by MeowChow (Vicar) on Jul 15, 2001 at 02:15 UTC | |
|
Re: Re: Perl 6 coroutines (RFC 31)
by John M. Dlugosz (Monsignor) on Jul 13, 2001 at 18:52 UTC | |
by MeowChow (Vicar) on Jul 14, 2001 at 08:16 UTC | |
by John M. Dlugosz (Monsignor) on Jul 14, 2001 at 22:59 UTC | |
by MeowChow (Vicar) on Jul 15, 2001 at 13:34 UTC | |
by John M. Dlugosz (Monsignor) on Jul 15, 2001 at 23:04 UTC | |
| |
|
Re: Re: Perl 6 coroutines (RFC 31)
by John M. Dlugosz (Monsignor) on Jul 16, 2001 at 02:26 UTC | |
by MeowChow (Vicar) on Jul 16, 2001 at 02:58 UTC |