RE: Making Big Substitution List
- To: mathgroup at smc.vnet.net
- Subject: [mg25621] RE: [mg25597] Making Big Substitution List
- From: "David Park" <djmp at earthlink.net>
- Date: Mon, 16 Oct 2000 03:04:42 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Dear Alex, P = {p1, p2, p3}; Psubs = Thread[P -> {1, 2, 3}] {p1 -> 1, p2 -> 2, p3 -> 3} David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ > -----Original Message----- > From: Alex [mailto:alex000 at my-deja.com] To: mathgroup at smc.vnet.net > Sent: Wednesday, October 11, 2000 3:51 AM > To: mathgroup at smc.vnet.net > Subject: [mg25621] [mg25597] Making Big Substitution List > > > Hi All, > > I have the following list > P={p1,p2,p3} > and I would like to create substitution list > SubsP={p1->1,p2->2,p3->3} > to use for the future > > How do I do it in one nice expression. > Unfortunately P->{1,2,3} does not > do the job. > I am think about somthing like > Apply[] function but I am lost ... > > Please help > > Many thanks, > > Alex > > > Sent via Deja.com http://www.deja.com/ > Before you buy. > >