develooper Front page | perl.perl6.language.data | Postings from September 2000

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes andslices

Thread Previous | Thread Next
From:
Karl Glazebrook
Date:
September 21, 2000 13:13
Subject:
Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes andslices
Message ID:
39CA6C1C.9FF21210@pha.jhu.edu
Buddha Buck wrote:
> >
> >   @x = 3 * $y[|i];
> >
> >It's not as clean as @x = 3 * @y, but it is cleaner context-wise.
> 
> And one could argue that:
> 
>     @x = map 3*^_, @y;
> 
> is cleaner yet...

PDL already allows $x = 3*$y

why step backwards?

KArl

Thread Previous | Thread Next


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