Re: deleting list components


[Prev][Next][Index][Thread]

Re: deleting list components



Tomas C wrote:
>
> I have a list with 10 components and I want to delete just the 3rd
> and 7th component inside a program
>
> exp.  20,19,18,17,13,1,6,5,9,7
>
> The only way I know how to do this is
> :20,19,18,17,13,1,6,5,9,7->L1
> :L1->L2
> :1->b
> :For a,1,2
> :L1(a)->L2(b)
> :1+b->b
> :End
> :For a,4,6
> :L1(a)->L2(b)
> :1+b->b
> :End
> :For a,8,10
> :L1(a)->L2(b)
> :1+B->B
> :END
> :L2->L1
> :Delvar(L2)
>
> I believe there has to be a better way.  simply delteing L1(3) for
> instance.  If anyone can help with this, please let me know.
>
> Tomas

There is no good way to do it.  This is the shortest possible method I
found to do it on the TI-83:

:20,19,18,17,13,1,6,5,9,7->L1
:For(A,4,6
:L1(A->L1(A-1
:End
:For(A,8,10
:L1(A->L1(A-2
:End
:8-dim(L1

--
Bryan Rabeler <brabeler@ticalc.org>
   File Archives, News, Features, HTML, and Support
   the ticalc.org project - http://www.ticalc.org/


References: