`[.rotate(-1)]` parsed as a reduction, not an array
Closed this issue · 0 comments
masak commented
<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 00 1 0 0 00 0 1 0 00 0 0 1 00 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 00 1 0 0 00 0 1 0 00 0 0 1 00 0 0 0 1»
* masak submits nieczaissue