func group(str) { gather { while (var match = (str =~ /((.)\g{-1}*)/g)) { take(match[0]) } } } say group(ARGV[0] \\ 'gHHH5YY++///\\').join(', ')
g, HHH, 5, YY, ++, ///, \
Last updated 1 year ago