From: Patrice on
Hello all,

I am new to the HP50G UserRPL and need advice.

On PCs, I am used to use lists as container for variable structure of
data with nested lists.
aka
{{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO

Do I have to write my own GET and PUT functions to access the values or
is it supported in some way?
aka
list {2 4 1} GET -> 7

Thanks

Patrice
From: software49g on
On 12 Nov., 08:13, Patrice <f...(a)home.fr> wrote:
>         Hello all,
>
>         I am new to the HP50G UserRPL and need advice.
>
>         On PCs, I am used to use lists as container for variable structure of
> data with nested lists.
> aka
>         {{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO
>
>         Do I have to write my own GET and PUT functions to access the values or
> is it supported in some way?
> aka
>         list {2 4 1} GET  ->  7
>
> Thanks
>
> Patrice

From: software49g on
Hello,

the AUR which contains all USER-RPL-Commands is available at
http://www.hpcalc.org/details.php?id=7141.

You can use GET, GETI, PUT, PUTI with lists or arrays.

Be warned that list access is pretty slow because the list has no size
field and thus all access has to be done by slow searching through the
Composite Object.

However, there is a trick to speed up access of Composite Objects by
wrapping them into a Code Object which can be done at compile time but
this "costs" 10 Nibbles for each list and of course this can not be
done in USER-RPL.

Depending on your needs you might want to choose another "container"
for your variables. If you are only using real numbers an array maybe
a better choice.

HTH,
Andreas
http://www.software49g.gmxhome.de
http://www.youtube.com/watch?v=Pj72miclisM

From: Veli-Pekka Nousiainen on

<software49g(a)gmx.de> wrote in message
news:854eaa84-4871-456f-a963-e434557853df(a)w19g2000yqk.googlegroups.com...
> Hello,
>
> the AUR which contains all USER-RPL-Commands is available at
> http://www.hpcalc.org/details.php?id=7141.
>
> You can use GET, GETI, PUT, PUTI with lists or arrays.
>
> Be warned that list access is pretty slow because the list has no size
> field and thus all access has to be done by slow searching through the
> Composite Object.
>
> However, there is a trick to speed up access of Composite Objects by
> wrapping them into a Code Object which can be done at compile time but
> this "costs" 10 Nibbles for each list and of course this can not be
> done in USER-RPL.

Not even with DevLib functions like COMP-> ->LST
???


From: Joe Horn on
Patrice wrote:

>         {{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO
>
>         Do I have to write my own GET and PUT functions to access the values or
> is it supported in some way?
> aka
>         list {2 4 1} GET  ->  7

list { 2 4 1 } 1 << GET >> DOLIST

-Joe-