Post Reply 
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sub-routine returning multiple values - webmasterpdx - 10-30-2017 09:15 AM



User(s) browsing this thread: 1 Guest(s)