New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whatever globbing in chained hash indexing #895
Comments
From @masak$ perl6 -e 'my %h = 'foo' => [1,2,3], 'bar' => [4,5,6]; say %h{*}[1].perl' When this works, we'll want this to output '[2, 5]'. |
From @bbkrOn Kiev build |
The RT System itself - Status changed from 'new' to 'open' |
From @diakopterOn Mon Jul 12 06:51:06 2010, bbkr wrote:
new behavior: 17:13 <diakopter> r: my %h = 'foo' => [1,2,3], 'bar' => [4,5,6]; say %h{*} |
From @pmichaudAfter thinking about this a bit, I'm inclined to disagree with the my %h = 'foo' => [1,2,3], 'bar' => [4,5,6]; If %h{*} is analogous to @array[*], then it returns a list (slice) of The real way to grab the second element from each array in the hash %h{*}».[1] which would apply the .[1] to each array returned from the hash. To get the (2,5) expected from the original ticket likely requires > my %h = 'foo' => [1,2,3], 'bar' => [4,5,6]; say (.[1] for The other possible mechanism for multidimensional slice subscripting is So, we can either reject this ticket, or we can maybe convert it to a Pm |
From @FROGGSSo far this works: But this does not: |
From @moritzThis has been implemented by now, presumably by lizmat. Tested here: |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#64768 (status was 'resolved')
Searchable as RT64768$
The text was updated successfully, but these errors were encountered: