From 7798f536121ed5bcba1fd8c9e0b145b3a605e04a Mon Sep 17 00:00:00 2001 From: Mark <53903062+andemark@users.noreply.github.com> Date: Tue, 6 Jun 2023 01:27:59 +0000 Subject: Challenge 220 Solutions (Raku) --- challenge-220/mark-anderson/raku/ch-2.raku | 4 ++-- 1 file 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 -- cgit