diff options
| author | Mark <53903062+andemark@users.noreply.github.com> | 2021-11-29 13:53:38 +0000 |
|---|---|---|
| committer | Mark <53903062+andemark@users.noreply.github.com> | 2021-11-29 13:53:38 +0000 |
| commit | ae5ffc0af2fd30754b16536d506605a3c55255de (patch) | |
| tree | 2f086107b9427e27587bf329fc9942147c0d2d0d | |
| parent | 4b18088d2c8639ff4e884e0d6b72303aaaa0b96d (diff) | |
| download | perlweeklychallenge-club-ae5ffc0af2fd30754b16536d506605a3c55255de.tar.gz perlweeklychallenge-club-ae5ffc0af2fd30754b16536d506605a3c55255de.tar.bz2 perlweeklychallenge-club-ae5ffc0af2fd30754b16536d506605a3c55255de.zip | |
Challenge 141 Solutions (Raku)
| -rw-r--r-- | challenge-141/mark-anderson/raku/ch-1.raku | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-141/mark-anderson/raku/ch-1.raku b/challenge-141/mark-anderson/raku/ch-1.raku index f5547da629..5a65a0f2e3 100644 --- a/challenge-141/mark-anderson/raku/ch-1.raku +++ b/challenge-141/mark-anderson/raku/ch-1.raku @@ -8,9 +8,9 @@ is-deeply number-divisors(8)[^10], (24, 30, 40, 42, 54, 56, 66, 70, 78, 88), 'example 1'; is-deeply number-divisors(8)[^10000].tail(5), - (45626, 45627, 45638, 45642, 45646), 'race ftw!'; + (45626, 45627, 45638, 45642, 45646), 'hyper ftw!'; sub number-divisors(\n) { - (^Inf).race.grep({ divisors($_) == n }); + (^Inf).hyper.grep({ divisors($_) == n }); } |
