Anonymous user
Variadic function: Difference between revisions
m
→{{header|BQN}}
(add BQN) |
m (→{{header|BQN}}) |
||
Line 641:
=={{header|BQN}}==
All BQN functions can be variadic since they allow taking lists of arbitrary length
<lang bqn>Fun1 ← •Show¨
Line 647:
Fun3 ← { 1=≠𝕩 ? •Show 𝕩; "too many arguments " ! 𝕩}</lang>
Both <tt>Fun1</tt> and <tt>Fun2</tt> display all the values (arguments) of the lists given to them.
<tt>Fun3</tt>
=={{header|C}}==
|