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#130619 (status was 'resolved')
Searchable as RT130619$
The text was updated successfully, but these errors were encountered:
➜ say (|() xx *)[0]; Cannot shift from an empty Array in block <unit> at <unknown file> line 1
Obviously, this golfed-down example is not useful as written. But this happened as an edge case of some real code I was writing.
By contrast, when the `xx` repetition count is finite is works correctly:
➜ say (|() xx 5)[0]; Nil
And when the thing that is being slipped in is non-empty, it also work correctly:
➜ say (|1 xx *)[0]; 1
Sorry, something went wrong.
On Sun, 22 Jan 2017 09:43:51 -0800, smls75@gmail.com wrote:
➜ say \(|\(\) xx \*\)\[0\]; Cannot shift from an empty Array in block \<unit> at \<unknown file> line 1 Obviously, this golfed-down example is not useful as written. But this happened as an edge case of some real code I was writing. By contrast, when the `xx` repetition count is finite is works correctly: ➜ say \(|\(\) xx 5\)\[0\]; Nil And when the thing that is being slipped in is non-empty, it also work correctly: ➜ say \(|1 xx \*\)\[0\]; 1
➜ say \(|\(\) xx \*\)\[0\]; Cannot shift from an empty Array in block \<unit> at \<unknown file> line 1
➜ say \(|\(\) xx 5\)\[0\]; Nil
➜ say \(|1 xx \*\)\[0\]; 1
Thank you for the report. This is now fixed.
Fix: rakudo/rakudo@4e49ec135d Test: Raku/roast@75e15bbb2a
The RT System itself - Status changed from 'new' to 'open'
@zoffixznet - Status changed from 'open' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#130619 (status was 'resolved')
Searchable as RT130619$
The text was updated successfully, but these errors were encountered: