Re: n-dim matrices
[email protected] ("Baris") Wed, 30 Aug 2000 22:18:37 -0700
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
Ok. How about: @a([$i,$j,$k], [$x,$y,$z]); as far as I know this should be ok? Baris. *********** REPLY SEPARATOR *********** On 8/31/00 at 3:02 PM Jeremy Howard wrote: >Baris wrote: >> > @a[[$i,$j,$k], [$x,$y,$z]] >> >> I think it is more readable if you have different type of parantheses: >> @a[($i,$j,$k), ($x,$y,$z)] >> >But > > [$i,$j,$k], [$x,$y,$z] > >is a list of list refs (because a list is created inside []). OTOH > > ($i,$j,$k), ($x,$y,$z) > >would be flattened into a single list. I like P5 list flattening, and >wouldn't want to see it go. I also wouldn't want to see it applied >inconsistently.