Skip to content

Commit 0144c93

Browse files
committed
Made the code more idiomatic.
1 parent 76e4e37 commit 0144c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

categories/euler/prob151-shlomif.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sub rec($factor, @counts, $result)
2121
{
2222
my @c = @counts;
2323
@c[$size]--;
24-
for $size+1 .. 4 -> $s
24+
for $size ^.. 4 -> $s
2525
{
2626
@c[$s]++;
2727
}

0 commit comments

Comments
 (0)