Re: RFC 148 (v1) Add reshape() for multi-dimensional array reshaping
[email protected] (Karl Glazebrook)
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
Consider @x[10:20, 20:40:2, 30:50] This ALMOST works in the current Perl. @x gives array context, then the , produces a list. If [] is overloaded on @a then the subroutine sees a list like "10:20", "20:40:2", "30:50" The only reason it does NOT work in the current perl is that "10:20" is a syntax error. What would be required to make this go away? i.e. to have 10:20 appear as a plain strring. What else would it effect? Sounds like almost a solution... Karl