Return multiple values: Difference between revisions

Line 2,656:
Return [ x+y, x-y ]
</syntaxhighlight>
 
=={{header|RPL}}==
The stack is where data are taken and then returned: stack size's the limit!
≪ + LAST - ≫ ‘ADDSUB’ STO
{{in}}
<pre>
33 12 ADDSUB
</pre>
{{out}}
<pre>
2: 44
1: 20
</pre>
 
=={{header|Ruby}}==
1,151

edits