Skip to content
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

[.rotate(-1)] parsed as a reduction, not an array #113

Closed
masak opened this issue Apr 4, 2012 · 0 comments
Closed

[.rotate(-1)] parsed as a reduction, not an array #113

masak opened this issue Apr 4, 2012 · 0 comments

Comments

@masak
Copy link
Collaborator

masak commented Apr 4, 2012

<TimToady> perl6: .say for ([1, 0 xx 5-1], { [.rotate(-1)] } ... *)[^5] 
<p6eval> niecza v15-6-gefda208: OUTPUT«===SORRY!===␤␤Method call found where infix expected (change whitespace?) at /tmp/jJEchhwcQ9 line 1:␤------> .say for ([1, 0 xx 5-1], { [⏏.rotate(-1)] } ... *)[^5]␤␤Parse failed␤␤»
<p6eval> ..rakudo 4373f0: OUTPUT«1 0 0 0 0␤0 1 0 0 0␤0 0 1 0 0␤0 0 0 1 0␤0 0 0 0 1␤»
<TimToady> huh, niecza is trying to parse it as a reduction
<TimToady> perl6: .say for ([1, 0 xx 5-1], { [ .rotate(-1) ] } ... *)[^5] 
<p6eval> rakudo 4373f0, niecza v15-6-gefda208: OUTPUT«1 0 0 0 0␤0 1 0 0 0␤0 0 1 0 0␤0 0 0 1 0␤0 0 0 0 1␤»
* masak submits nieczaissue
@sorear sorear closed this as completed in eacfab8 May 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants