aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-220/mark-anderson/raku/ch-2.raku6
1 files changed, 2 insertions, 4 deletions
diff --git a/challenge-220/mark-anderson/raku/ch-2.raku b/challenge-220/mark-anderson/raku/ch-2.raku
index 302f0b9b63..53841bcf10 100644
--- a/challenge-220/mark-anderson/raku/ch-2.raku
+++ b/challenge-220/mark-anderson/raku/ch-2.raku
@@ -17,9 +17,7 @@ sub squareful(+@a)
my $squares := (0..$s Z* 0..$s).List;
- gather for @a.permutations.unique(with => &[eqv])
- {
- .take if .rotor(2 => -1)>>.sum (<=) $squares
- }
+ @a.permutations.unique(with => &[eqv])
+ .grep({ .rotor(2 => -1)>>.sum (<=) $squares });
}
=end alternate