Return multiple values: Difference between revisions

(Added Euler)
Line 1,027:
 
=={{header|Euler}}==
Euler procedures can return a list (Euler's only data structure), thsthis is used here to return three values from the getMV procedure.
<br>
Procedures are defined by enclosing their text between ` and '. They can then be assigningassigned to a variable for later use.
<br>
Lists are constructed by placing the values between ( and ). Once assigned to a variable, the list can be subscripted to access the individual elements (which can themselves be lists).
3,044

edits