Variadic function: Difference between revisions

m
→‎Icon and Unicon: fix headings
({{Omit from|ZX Spectrum Basic}})
m (→‎Icon and Unicon: fix headings)
Line 388:
The other kind of instance is the "recursive case". It describes what happens when you come across an argument. Here we simply append its string representation to the end of our previous "accumulated state", and then pass that state onto the next iteration. Make sure to specify the requirements of the types of the arguments; here I just required that each argument be an instance of Show (so you can use "show" to get the string representation), but it might be different for you.
 
== {{header|Icon}} and {{header|Unicon }}==
==={{header|Icon}}===
varargs.icn
 
Line 412 ⟶ 411:
c
d</pre>
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Io}}==
Anonymous user