Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7931 > unrolled thread

Re: opposite of AppendTo

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-01-17 08:48 +0000
Last post2012-01-17 08:48 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: opposite of AppendTo Bill Rowe <readnews@sbcglobal.net> - 2012-01-17 08:48 +0000

#7931 — Re: opposite of AppendTo

FromBill Rowe <readnews@sbcglobal.net>
Date2012-01-17 08:48 +0000
SubjectRe: opposite of AppendTo
Message-ID<jf3ckv$nn5$1@smc.vnet.net>
On 1/16/12 at 5:12 PM, burket@mailbox.sc.edu (burke) wrote:

>AppendTo[s,e] appends "e" to "s" and then RESETS "s". How does one
>delete or remove an element "e" from a list "s" and then RESET "s"?
>The _reset_ is my problem.  I want to be able to add and delete
>elements of a list (a list of graphical elements with very low
>opacity).  I can "appendto" the list at will but am unable to delete
>elements (using Delete, DeleteCases, Except, Select, etc.). Deleting
>"e" from "s" is easy enough, but resetting "s" seems impossible.

In[12]:= a = data = RandomReal[1, 10];
AppendTo[data, 100];
data = Most[data];
a == data

Out[15]= True

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web