aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-132/mark-anderson/raku/ch-2.raku28
1 files changed, 12 insertions, 16 deletions
diff --git a/challenge-132/mark-anderson/raku/ch-2.raku b/challenge-132/mark-anderson/raku/ch-2.raku
index 9f7976f138..215b866c0e 100644
--- a/challenge-132/mark-anderson/raku/ch-2.raku
+++ b/challenge-132/mark-anderson/raku/ch-2.raku
@@ -1,22 +1,18 @@
#!/usr/bin/env raku
-my @players-age = (
- < 20 Alex >,
- < 28 Joe >,
- < 38 Mike >,
- < 18 Alex >,
- < 25 David >,
- < 18 Simon >,
-);
+my @players-age = < 20 Alex >,
+ < 28 Joe >,
+ < 38 Mike >,
+ < 18 Alex >,
+ < 25 David >,
+ < 18 Simon >;
-my @players-name = (
- < Alex Stewart >,
- < Joe Root >,
- < Mike Gatting >,
- < Joe Blog >,
- < Alex Jones >,
- < Simon Duane >,
-);
+my @players-name = < Alex Stewart >,
+ < Joe Root >,
+ < Mike Gatting >,
+ < Joe Blog >,
+ < Alex Jones >,
+ < Simon Duane >;
my %a = @players-age.classify({ .[1] }, :as{ .[0] });
my %n = @players-name.classify({ .[0] }, :as{ .[1] });