Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!novia!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail From: Bob Hanlon Newsgroups: comp.soft-sys.math.mathematica Subject: Re: opposite of AppendTo Date: Tue, 17 Jan 2012 08:51:05 +0000 (UTC) Organization: Steven M. Christensen and Associates, Inc and MathTensor, Inc. Sender: steve@smc.vnet.net Approved: Steven M. Christensen , Moderator Message-ID: Lines: 40 NNTP-Posting-Date: 17 Jan 2012 08:51:28 GMT NNTP-Posting-Host: dcbe7ea4.news.twtelecom.net X-Trace: DXC=CBZWMjMYM::XPjNm[V63b>C_A=>8kQj6=hHXa^^g6TZ4O2c1^>a4XU?EFiONJ7[Go6HfE5Y=\lV;2 X-Complaints-To: abuse@twtelecom.net Xref: x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:7936 s = Array[x, 4]; AppendTo[s, e] {x[1], x[2], x[3], x[4], e} s = Most[s] {x[1], x[2], x[3], x[4]} AppendTo[s, e] {x[1], x[2], x[3], x[4], e} s = Drop[s, -1] {x[1], x[2], x[3], x[4]} AppendTo[s, e] {x[1], x[2], x[3], x[4], e} s = s /. e -> Sequence[] {x[1], x[2], x[3], x[4]} Bob Hanlon On Mon, Jan 16, 2012 at 5:12 PM, 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. > Help!! >