Variadic function: Difference between revisions

Content added Content deleted
m (Updated description and link for Fōrmulæ solution)
Line 1,766: Line 1,766:
</pre>
</pre>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Function that takes 0 to infinite arguments and prints the arguments:
Function that takes 0 to infinite arguments and prints the arguments:
<lang Mathematica>ShowMultiArg[x___] := Do[Print[i], {i, {x}}]</lang>
<lang Mathematica>ShowMultiArg[x___] := Do[Print[i], {i, {x}}]</lang>