Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7922 > unrolled thread
| Started by | Tomas Garza <tgarza10@msn.com> |
|---|---|
| First post | 2012-01-17 08:43 +0000 |
| Last post | 2012-01-17 08:43 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: opposite of AppendTo Tomas Garza <tgarza10@msn.com> - 2012-01-17 08:43 +0000
| From | Tomas Garza <tgarza10@msn.com> |
|---|---|
| Date | 2012-01-17 08:43 +0000 |
| Subject | Re: opposite of AppendTo |
| Message-ID | <jf3ccc$nih$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web