We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#130503 (status was 'new')
Searchable as RT130503$
The text was updated successfully, but these errors were encountered:
Code: my @x; say @x»[0]
Result: This type (Scalar) does not support elems in block <unit> at -e line 1
I think it should work (and should do nothing, as there are no elements in the array).
Here is an interesting thing. If you take, say, 2016.05 and try this:
Code: my @x; dd @x; say @x»[0]
Result (2016.05): Array @x = [] ()
It works! But if you remove dd:
Result: This type (Scalar) does not support elems in block <unit> at /tmp/DPLGku74eh line 1
So it worked with dd, but didn't work without it. Weird. Anyway, this detail is probably not relevant anymore.
Sorry, something went wrong.
Works in a recent Rakudo:
say $*RAKU; # Raku (6.d) my @x; say @x»[0]; # ()
No branches or pull requests
Migrated from rt.perl.org#130503 (status was 'new')
Searchable as RT130503$
The text was updated successfully, but these errors were encountered: