Re: deleting list components


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

Re: deleting list components



At 05:41 PM 12/18/98 EST, you wrote:
>There is a simpler way to do just what the person asked about(deleting one
>item), although I like RWW Taylor's suggestion, which allows you to delete
>multiple items.
>
>To remove one item:
>
>{1,2,3,4,5,6,7,8,9,10} -> L1    // The initial list
>7 -> N          // Where N is the position of the item you want to remove
>
>For(X,N,dim(L1)-1)
>        L1(X+1) -> L1(X)
>End
>
>dim(L1)-1 -> dim(L1)  //Cut the last item off of the list.
>

Well it does, but I did get the answer back in august 97, I believe.  On
this subject though, I don't think you can do that with a 92.  dim(L1)-1 ->
dim(L1). doesn't work


Tomas C

Let's not talk of love or chains or things we can't untie.
-L. Cohen


References: