aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-065/simon-proctor/raku/ch-1.p64
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-065/simon-proctor/raku/ch-1.p6 b/challenge-065/simon-proctor/raku/ch-1.p6
index 9843b1459e..dd019f5930 100644
--- a/challenge-065/simon-proctor/raku/ch-1.p6
+++ b/challenge-065/simon-proctor/raku/ch-1.p6
@@ -18,9 +18,9 @@ multi sub MAIN (
.say for calculate-sums( $n, $s, 1 ).grep( { defined $_ } );
}
-multi sub calculate-sums( UInt $n, UInt $s where { $n * 9 < $s }, $ ) { gather take Nil }
+multi sub calculate-sums( UInt $n, UInt $s where { $n * 9 < $s }, $ ) {}
-multi sub calculate-sums( UInt $n, 0, $ ) { gather take 0 x $n }
+multi sub calculate-sums( UInt $n, 0, $ ) { 0 x $n }
multi sub calculate-sums( UInt $n, UInt $s, $start = 0 ) {
my $end = $s > 9 ?? 9 !! $s;