Sub-routine returning multiple values
|
10-30-2017, 09:15 AM
Post: #5
|
|||
|
|||
RE: Sub-routine returning multiple values
The Miscellaneous Tips article linked to from the HP Prime wiki Programming Documentation section says this:
To return multiple values, return it as a list. e.g. f1(x) returns a list containing 3 integers. The values returned can be assigned to variables like this: L:=f1(x);A:=L(1);B:=L(2);C:=L(3); http://www.wiki4hp.com/doku.php?id=prime:start |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Sub-routine returning multiple values - Jacob Wall - 10-30-2017, 12:48 AM
RE: Sub-routine returning multiple values - toml_12953 - 10-30-2017, 01:14 AM
RE: Sub-routine returning multiple values - cyrille de brébisson - 10-30-2017, 06:08 AM
RE: Sub-routine returning multiple values - StephenG1CMZ - 10-30-2017, 09:00 AM
RE: Sub-routine returning multiple values - webmasterpdx - 10-30-2017 09:15 AM
RE: Sub-routine returning multiple values - Didier Lachieze - 10-30-2017, 10:51 AM
RE: Sub-routine returning multiple values - StephenG1CMZ - 10-30-2017, 06:47 PM
RE: Sub-routine returning multiple values - Jacob Wall - 10-31-2017, 02:38 AM
|
User(s) browsing this thread: 1 Guest(s)