3 ms·
Perl6 allows you to define your own operators: $ perl6 > sub infix:<J> ($sep, @list) { @list.join($sep) } > sub prefix:<J,> (@list) { @list.join
by draegtun 14y ago
Perl6 allows you to define your own operators:
$ perl6
> sub infix:<J> ($sep, @list) { @list.join($sep) }
> sub prefix:<J,> (@list) { @list.join(',') }
> ':' J <one two three four>;
one:two:three:four
> J,<five six seven eight>;
five,six,seven,eight