aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-078/markus-holzer/raku/ch-1.raku8
1 files changed, 4 insertions, 4 deletions
diff --git a/challenge-078/markus-holzer/raku/ch-1.raku b/challenge-078/markus-holzer/raku/ch-1.raku
index 8afa6dcf2b..8b62596421 100644
--- a/challenge-078/markus-holzer/raku/ch-1.raku
+++ b/challenge-078/markus-holzer/raku/ch-1.raku
@@ -1,12 +1,12 @@
-unit sub MAIN( *@A where @A.all ~~ Int );
+unit sub MAIN( *@numbers where @numbers.all ~~ Int );
-say "({ join ", ", leader-elements( @A ) })";
+say "({ join ", ", leader-elements( @numbers ) })";
sub leader-elements( @stuff ) {
sub find( $that, *@the-rest ) {
- take $that if $that > all @the-rest;
+ take $that if $that > all @the-rest;
find |@the-rest if @the-rest }
-
+git
+@stuff ?? gather find |@stuff !! 0 }
#