Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Nth/Raku/nth-1.raku
Normal file
5
Task/Nth/Raku/nth-1.raku
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
my %irregulars = <1 st 2 nd 3 rd>, (11..13 X=> 'th');
|
||||
|
||||
sub nth ($n) { $n ~ ( %irregulars{$n % 100} // %irregulars{$n % 10} // 'th' ) }
|
||||
|
||||
say .list».&nth for [^26], [250..265], [1000..1025];
|
||||
5
Task/Nth/Raku/nth-2.raku
Normal file
5
Task/Nth/Raku/nth-2.raku
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
my %irregulars = <1 ˢᵗ 2 ⁿᵈ 3 ʳᵈ>, (11..13 X=> 'ᵗʰ');
|
||||
|
||||
sub nth ($n) { $n ~ ( %irregulars{$n % 100} // %irregulars{$n % 10} // 'ᵗʰ' ) }
|
||||
|
||||
say .list».&nth for [^26], [250..265], [1000..1025];
|
||||
Loading…
Add table
Add a link
Reference in a new issue