Return multiple values: Difference between revisions
Content added Content deleted
(Added Euler) |
(→{{header|Euler}}: typos) |
||
Line 1,027: | Line 1,027: | ||
=={{header|Euler}}== |
=={{header|Euler}}== |
||
Euler procedures can return a list (Euler's only data structure), |
Euler procedures can return a list (Euler's only data structure), this is used here to return three values from the getMV procedure. |
||
<br> |
<br> |
||
Procedures are defined by enclosing their text between ` and '. They can then be |
Procedures are defined by enclosing their text between ` and '. They can then be assigned to a variable for later use. |
||
<br> |
<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). |
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). |