Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7922
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Tomas Garza <tgarza10@msn.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: opposite of AppendTo |
| Date | Tue, 17 Jan 2012 08:43:56 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <jf3ccc$nih$1@smc.vnet.net> (permalink) |
| References | <201201162212.RAA15438@smc.vnet.net> |
| Lines | 17 |
| NNTP-Posting-Date | 17 Jan 2012 08:44:19 GMT |
| NNTP-Posting-Host | dcbe7ea4.news.twtelecom.net |
| X-Trace | DXC=VFYPL<AWadd7CHeFhLT:IjC_A=>8kQj6mhHXa^^g6TZd8IIjUcfRX``EFiONJ7[Gof[W9]N6h6DPi |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:7922 |
Show key headers only | View raw
If I understand correctly, your problem seems to lie in the use of AppendTo. This is a very tricky function, since it "resets" s without your control and sometimes things get messed up. Perhaps you could try to use simply Append, where you get a new list but s is not changed in the process. Essentially, what AppendTo does is s = Append[s,e]. -Tomas > Date: Mon, 16 Jan 2012 17:12:16 -0500 > From: burket@mailbox.sc.edu > Subject: opposite of AppendTo > To: mathgroup@smc.vnet.net > > 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!! >
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: opposite of AppendTo Tomas Garza <tgarza10@msn.com> - 2012-01-17 08:43 +0000
csiph-web