Re: play with raku and autobiographical numbers

2020-01-01 Thread Marc Chantreux
On Tue, Dec 31, 2019 at 03:16:50PM +0100, Tobias Boege wrote: > Here is my entry, having a Bag count the occurences of letters, > instead of the loop over @r you used. i'm not used to bags so i always forget it. i really love the your final code. thanks regards marc

Re: play with raku and autobiographical numbers

2019-12-31 Thread Tobias Boege
On Tue, 31 Dec 2019, Marc Chantreux wrote: > hello, > > 2020 describes itself as it is composed by > > 2 0 > 0 1 > 2 2 > 0 3 > > perfect golf excuse! I have : > > sub is_autobiographic (\x) { > my \s = x.Str; > my @r = s.comb; > my %appearance_of; >