diff options
| -rw-r--r-- | challenge-220/mark-anderson/raku/ch-2.raku | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-220/mark-anderson/raku/ch-2.raku b/challenge-220/mark-anderson/raku/ch-2.raku index 53841bcf10..99b1091536 100644 --- a/challenge-220/mark-anderson/raku/ch-2.raku +++ b/challenge-220/mark-anderson/raku/ch-2.raku @@ -7,7 +7,7 @@ is-deeply squareful(2, 2, 2), ((2, 2, 2),); sub squareful(+@a) { @a.permutations.unique(with => &[eqv]) - .grep({ all(.rotor(2 => -1)).sum.sqrt.narrow ~~ UInt }); + .grep({ all(.rotor(2 => -1)).sum.sqrt.narrow ~~ UInt }) } =begin alternate @@ -18,6 +18,6 @@ sub squareful(+@a) my $squares := (0..$s Z* 0..$s).List; @a.permutations.unique(with => &[eqv]) - .grep({ .rotor(2 => -1)>>.sum (<=) $squares }); + .grep({ .rotor(2 => -1)>>.sum (<=) $squares }) } =end alternate |
