With friends like these...
C-o-rr-a-ll-i-n-g d-i-tt-o-e-d l-e-tt-e-r-s
I was going to focus this week on the first task of the 20th Weekly Challenge...but what can I say? The task was a break a string specified on the command-line into runs of identical characters:
"toolless" → t oo ll e ss
"subbookkeeper" → s u bb oo kk ee p e r
"committee" → c o mm i tt ee
But that’s utterly trivial in Raku:
use v6.d;
sub MAIN (\str) {
.say for str.comb: /(.) $0*/
}
And almost as easy in Perl:





