Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Flatten input list to for loop
  • Loading branch information
Paul Cochrane committed Apr 28, 2015
1 parent 9612390 commit f40b232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/euler/prob025-polettix.pl
Expand Up @@ -84,7 +84,7 @@ (@x is rw, @y)
# put "0"s to iterate over the whole $x. This could be
# improved, but it's unlikely that two consecutive Fibonacci
# numbers differ by more than one digit
for @x Z (@y, 0, *) -> $x is rw, $y {
for (@x Z (@y, 0, *)).flat -> $x is rw, $y {
$x += $y + $rest;
$rest = ($x / $limit).Int;
$x %= $limit;
Expand Down

0 comments on commit f40b232

Please sign in to comment.