Jeremy Howard wrote: > > I prefer the syntax I suggested yesterday: > > $a[[$i,$j,$k]]; > > which also allows multiple elements: > > $a[[$i,$j,$k], [$x,$y,$z]]; The problem I have with the above is how similar it is to this: @a[$i,$j,$k]; A little too close for comfort, personally. But that's just my opinion. Then again, we can't make every syntax look radically different, and they are unique. And I'm assuming this only returns one element, right? Because if it returns a list it's not a $scalar. I think by this: $a[[$i,$j,$k], [$x,$y,$z]]; You might actually mean this: @a[[$i,$j,$k], [$x,$y,$z]]; -Nate
- Re: Proposed RFC for matrix in... Dan Sugalski
- Re: Proposed RFC for matrix in... Karl Glazebrook
- Re: Proposed RFC for matrix in... Dan Sugalski
- Re: Access to the perl6 parser Damian Conway
- Re: Access to the perl6 parser Christian Soeller
- Re: Access to the perl6 parser Damian Conway
- Re: Access to the perl6 parser Dan Sugalski
- Re: Access to the perl6 parser Damian Conway
- Re: Proposed RFC for matrix indexing and slicing Buddha Buck
- Re: Proposed RFC for matrix indexing and slicing Jeremy Howard
- Re: Proposed RFC for matrix indexing and slicing Nathan Wiger
- Re: Proposed RFC for matrix indexing and slicin... Jeremy Howard
- Re: Proposed RFC for matrix indexing and slicing Buddha Buck
- Re: Proposed RFC for matrix indexing and slicin... David L. Nicol