RosettaCodeData/Task/Variadic-function/J/variadic-function-2.j

4 lines
114 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
commaAnd=: [: ; (<' and ') _2} ::] 1 }.&, (<', ') ,. ":each
commaAnd 'dog';A;B;'cat';C
dog, 2, 3, cat and 5