aboutsummaryrefslogtreecommitdiff
path: root/challenge-075
diff options
context:
space:
mode:
authorMarkus "Holli" Holzer <holli.holzer@gmail.com>2020-08-24 23:51:16 +0200
committerMarkus "Holli" Holzer <holli.holzer@gmail.com>2020-08-24 23:51:16 +0200
commit715d360948f5afa3f024dd076cde74e2ae5c5b04 (patch)
tree8e6afad05c2b7f524bf33803d3032d064077a7ec /challenge-075
parentd845bec6d87e6343da1afc8c419f623b15b4d6d7 (diff)
downloadperlweeklychallenge-club-715d360948f5afa3f024dd076cde74e2ae5c5b04.tar.gz
perlweeklychallenge-club-715d360948f5afa3f024dd076cde74e2ae5c5b04.tar.bz2
perlweeklychallenge-club-715d360948f5afa3f024dd076cde74e2ae5c5b04.zip
shorter
Diffstat (limited to 'challenge-075')
-rw-r--r--challenge-075/markus-holzer/raku/ch-1.raku2
-rw-r--r--challenge-075/markus-holzer/raku/ch-2.raku2
2 files changed, 2 insertions, 2 deletions
diff --git a/challenge-075/markus-holzer/raku/ch-1.raku b/challenge-075/markus-holzer/raku/ch-1.raku
index 53cc082320..89608c02d6 100644
--- a/challenge-075/markus-holzer/raku/ch-1.raku
+++ b/challenge-075/markus-holzer/raku/ch-1.raku
@@ -3,4 +3,4 @@ sub c( $S, @C, *@c ) {
take [@c.sort] if $s == $S;
c( $S, @C, @c, $_ ) for @C }}
-say ( gather c 6, [1, 2, 4], [] ).unique: with => &[~~] \ No newline at end of file
+say ( gather c 6, [1, 2, 4] ).unique: with => &[~~] \ No newline at end of file
diff --git a/challenge-075/markus-holzer/raku/ch-2.raku b/challenge-075/markus-holzer/raku/ch-2.raku
index e9cef05922..0409764f58 100644
--- a/challenge-075/markus-holzer/raku/ch-2.raku
+++ b/challenge-075/markus-holzer/raku/ch-2.raku
@@ -1,3 +1,3 @@
my @A = (3, 2, 3, 5, 7, 5);
#my @A = (2, 1, 4, 5, 3, 7);
-say ( 1..+@A ).map({ |@A.rotor($_ => -$_ + 1) }).max({ .min * .elems }); \ No newline at end of file
+say ( 1..@A ).map({ |@A.rotor($_ => 1 - $_) }).max({ .min * .elems }); \ No newline at end of file