Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15098
| From | "Louis Talman" <talmanl@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Changing a list with the information of other |
| Date | 2013-07-03 08:48 +0000 |
| Message-ID | <kr0ogm$3dl$1@smc.vnet.net> (permalink) |
| References | <20130702044642.9CA146A4F@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Mon, 01 Jul 2013 22:46:42 -0600, Joaquim Nogueira <jen@fct.unl.pt>
wrote:
> {{0, 1}, {1, w}, {2, 1 + w}, {3, 1 + 2 w}, {4, 2}, {5, 2 w}, {6, 2 + 2
> w}, {7, 2 + w}}
Call your first list L, your second M.
Then do
L /. {a_, b_} :> Set[f[b],a];
followed by
Map[f, M]
--Louis A. Talman
Department of Mathematical and Computer Sciences
Metropolitan State University of Denver
<http://rowdy.msudenver.edu/~talmanl>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Changing a list with the information of other "Louis Talman" <talmanl@gmail.com> - 2013-07-03 08:48 +0000
csiph-web