diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2021-07-22 12:19:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-22 12:19:57 +0100 |
| commit | 5a228127ce3296f3883481fbc3b30b71b2e56a48 (patch) | |
| tree | 78735709b60170430e81ae770508b9e822e5efe8 | |
| parent | 47dbce94b5e7ca89e0731a1bcbca9194dfb607a7 (diff) | |
| parent | 1a68e4e2bef93753a0f9dcf9dd16cdac0c680510 (diff) | |
| download | perlweeklychallenge-club-5a228127ce3296f3883481fbc3b30b71b2e56a48.tar.gz perlweeklychallenge-club-5a228127ce3296f3883481fbc3b30b71b2e56a48.tar.bz2 perlweeklychallenge-club-5a228127ce3296f3883481fbc3b30b71b2e56a48.zip | |
Merge pull request #4580 from andinus/master
Challenge 122: Remove unnecessary method calls
| -rw-r--r-- | challenge-122/andinus/README | 2 | ||||
| -rw-r--r-- | challenge-122/andinus/README.org | 2 | ||||
| -rw-r--r-- | challenge-122/andinus/raku/ch-2.raku | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/challenge-122/andinus/README b/challenge-122/andinus/README index d696f18957..796b1d2086 100644 --- a/challenge-122/andinus/README +++ b/challenge-122/andinus/README @@ -163,7 +163,7 @@ Raku │ │ .put for gather for [X] ((0, 1, 2, 3) xx $score) -> @scores { │ take @scores if ([+] @scores) == $score; - │ }.map(*.grep(* !== 0).comb.grep(* !== "").join).unique.map(*.comb.map(*.Int)); + │ }.map(*.grep(* !== 0).join).unique.map(*.comb); └──── After we gather the lists of scores, remove 0's from there and then we diff --git a/challenge-122/andinus/README.org b/challenge-122/andinus/README.org index dba4aeeb8a..55618223df 100644 --- a/challenge-122/andinus/README.org +++ b/challenge-122/andinus/README.org @@ -139,7 +139,7 @@ unit sub MAIN(Int $score); .put for gather for [X] ((0, 1, 2, 3) xx $score) -> @scores { take @scores if ([+] @scores) == $score; -}.map(*.grep(* !== 0).comb.grep(* !== "").join).unique.map(*.comb.map(*.Int)); +}.map(*.grep(* !== 0).join).unique.map(*.comb); #+end_src After we gather the lists of scores, remove 0's from there and then we diff --git a/challenge-122/andinus/raku/ch-2.raku b/challenge-122/andinus/raku/ch-2.raku index f4ac6cba06..6d18a6b9d9 100644 --- a/challenge-122/andinus/raku/ch-2.raku +++ b/challenge-122/andinus/raku/ch-2.raku @@ -3,4 +3,4 @@ unit sub MAIN(Int $score); .put for gather for [X] ((0,1, 2, 3) xx $score) -> @scores { take @scores if ([+] @scores) == $score; -}.map(*.grep(* !== 0).comb.grep(* !== "").join).unique.map(*.comb.map(*.Int)); +}.map(*.grep(* !== 0).join).unique.map(*.comb); |
