aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark <53903062+andemark@users.noreply.github.com>2021-11-10 02:16:04 +0000
committerMark <53903062+andemark@users.noreply.github.com>2021-11-10 02:16:04 +0000
commitdf31708387155952a1e1bed6a6b86d25966cf1bb (patch)
tree11738b6045137f2f384e8166b63fde8ec424c97c
parent5e5f1cf3f56dc531e64ce47c8889177a26822719 (diff)
downloadperlweeklychallenge-club-df31708387155952a1e1bed6a6b86d25966cf1bb.tar.gz
perlweeklychallenge-club-df31708387155952a1e1bed6a6b86d25966cf1bb.tar.bz2
perlweeklychallenge-club-df31708387155952a1e1bed6a6b86d25966cf1bb.zip
array instead of hash
-rw-r--r--challenge-138/mark-anderson/raku/ch-1.raku6
1 files changed, 3 insertions, 3 deletions
diff --git a/challenge-138/mark-anderson/raku/ch-1.raku b/challenge-138/mark-anderson/raku/ch-1.raku
index 96f10551a7..91c1424e51 100644
--- a/challenge-138/mark-anderson/raku/ch-1.raku
+++ b/challenge-138/mark-anderson/raku/ch-1.raku
@@ -15,9 +15,9 @@ is workdays(2076), 262;
sub workdays($year)
{
- my @a = [ Nil, 261, 261, 261, 261, 261, 260, 260 ],
- [ Nil, 262, 262, 262, 262, 261, 260, 261 ];
+ my $a := [ Nil, 261, 261, 261, 261, 261, 260, 260 ],
+ [ Nil, 262, 262, 262, 262, 261, 260, 261 ];
my $dt = Date.new($year, 1, 1);
- @a[ +$dt.is-leap-year ][ $dt.day-of-week ];
+ $a[ +$dt.is-leap-year ][ $dt.day-of-week ];
}