Calendar: Difference between revisions

No change in size ,  3 years ago
m
→‎{{header|Raku}}: change name of $months-per-col to $months-per-row for accuracy
(Added Wren)
m (→‎{{header|Raku}}: change name of $months-per-col to $months-per-row for accuracy)
Line 5,926:
(formerly Perl 6)
{{works with|Rakudo|2015.12}}
<lang perl6>my $months-per-colrow = 3;
my @week-day-names = <Mo Tu We Th Fr Sa Su>;
my @month-names = <Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec>;
Line 5,942:
@month-strs[$_] = fmt-month($year, $_).lines.Array for 1 .. 12;
 
loop ( my $month = 1; $month <= 12; $month += $months-per-colrow ) {
while @month-strs[$month] {
for ^$months-per-colrow {
next unless @month-strs[$month+$_];
$str ~= @month-strs[$month+$_].shift;
1,481

edits