HP Forums
How do I decompose a list with the HP Prime. - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: How do I decompose a list with the HP Prime. (/thread-255188.html)



How do I decompose a list with the HP Prime. - Hal Bitton in Boise - 11-08-2013

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. - Michael de Estrada - 11-08-2013

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. - Helge Gabert - 11-08-2013

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. - Marcus von Cube, Germany - 11-08-2013

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. - Patrice - 11-08-2013

You have not command to play with RPN stack.

Your function can only take parameters from stack and give 1 answer.