fork download
  1. #!/usr/bin/perl6
  2.  
  3. my &golf =
  4.  
  5. {[~] flat roundrobin |$_».comb}
  6.  
  7.  
  8. say golf ['SIMPLE'];
  9. say golf ['POLLS', 'EPEES'];
  10. say golf ['LYES', 'APRONS'];
  11. say golf ['ABCDE', 'a c', '123 567'];
  12. say golf ['"\n$?*', '', ',(.)" '];
Success #stdin #stdout 0.7s 187584KB
stdin
Standard input is empty
stdout
SIMPLE
PEOPLELESS
LAYPERSONS
Aa1B 2Cc3D E567
",\(n.$)?"*