On Wed, 9 Aug 2000 09:11:55 +0100 (BST), Nick Ing-Simmons wrote:
>> @foo = @bar * 12;
>
>I like it.
>It is pretty obvious what above should do:
>
>@foo = ();
>foreach my $elem (@bar)
> {
> push(@foo,$elem * 12);
> }
@foo = map { $_ * 12 } @bar;
I don't see the need for a new notation.
--
Bart.
- Re: vtables (was Re: Ramblings on "base class"... Dan Sugalski
- Re: Ramblings on "base class" for SV etc. Chaim Frenkel
- Re: Ramblings on "base class" for SV etc. Nick Ing-Simmons
- Re: Ramblings on "base class" for SV etc. Chaim Frenkel
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- Re: Ramblings on "base class" for SV etc. Chaim Frenkel
- Re: Ramblings on "base class" for SV etc. Ken Fox
- Re: Ramblings on "base class" for SV etc. Dan Sugalski
- Re: Ramblings on "base class" for SV etc. Bryan C . Warnock
- Re: Ramblings on "base class" for SV etc. Nick Ing-Simmons
- Hooks for array notation (was Re: Ramblings on "bas... Bart Lateur
- Hooks for array notation (was Re: Ramblings on "bas... Jeremy Howard
- Re: Hooks for array notation (was Re: Ramblings on "... Dan Sugalski
- Re: Hooks for array notation (was Re: Ramblings on "... Bart Lateur
- Re: Hooks for array notation (was Re: Ramblings on "... Dan Sugalski
- Re: Hooks for array notation (was Re: Ramblings on "... Bart Lateur
- Re: Hooks for array notation (was Re: Ramblings on "... Bart Lateur
- Re: Hooks for array notation (was Re: Ramblings on "... Dan Sugalski
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Karl Glazebrook
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Dan Sugalski
- Re: PDL-P: Re: Hooks for array notation (was Re: Ramblin... Jeremy Howard
