The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

How do I decompose a list with the HP Prime.
Message #1 Posted by Hal Bitton in Boise on 8 Nov 2013, 4:48 a.m.

Hi guys.
Been a while since I've posted here...hope everyone is doing well. One quick question if I may: how does one de-compose a list with the HP Prime. (on the 50G this would be the OBJ-> command.) I'm looking to put the elements into separate stack levels on the home screen in RPN mode.
Thanks, Hal

      
Re: How do I decompose a list with the HP Prime.
Message #2 Posted by Michael de Estrada on 8 Nov 2013, 10:22 a.m.,
in response to message #1 by Hal Bitton in Boise

I have a similar question. I want to assign the list contents to separate variables of the same type.

            
Re: How do I decompose a list with the HP Prime.
Message #3 Posted by Helge Gabert on 8 Nov 2013, 10:28 a.m.,
in response to message #2 by Michael de Estrada

Access is direct, by calling the index as the argument.

So, { . . . } (1)

or

{ . . . } (2) etc.

Good luck!

                  
Re: How do I decompose a list with the HP Prime.
Message #4 Posted by Marcus von Cube, Germany on 8 Nov 2013, 1:10 p.m.,
in response to message #3 by Helge Gabert

There is no way to return more than one value to the RPN stack in one go, at least not with the built-in programming language.

      
Re: How do I decompose a list with the HP Prime.
Message #5 Posted by Patrice on 8 Nov 2013, 2:07 p.m.,
in response to message #1 by Hal Bitton in Boise

You have not command to play with RPN stack.
Your function can only take parameters from stack and give 1 answer.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall