Variadic function: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|J}}) |
||
Line 1,440: | Line 1,440: | ||
commaAnd 'dog';A;B;'cat';C |
commaAnd 'dog';A;B;'cat';C |
||
dog, 2, 3, cat and 5</lang> |
dog, 2, 3, cat and 5</lang> |
||
To print each argument on its own line, we would typically map echo over the arguments (in this example, the contents of each box): |
|||
<lang J> echo&>'dog';A;B;'cat';C |
|||
dog |
|||
2 |
|||
3 |
|||
cat |
|||
5</lang> |
|||
=={{header|Java}}== |
=={{header|Java}}== |