I have wondered for some time, what a nice, clean solution for joining an array of strings might look like. Example: I have [\"Alpha\", \"Beta\", \"Gamma\"] and want to join
sub join( $separator, @strings ){ my $return = shift @strings; for @strings -> ( $string ){ $return ~= $separator ~ $string; } return $return; }
Yes I know it is pointless because Perl 6 already has a join function.