Re: Pure Functions in rules
- To: mathgroup at smc.vnet.net
- Subject: [mg15991] Re: [mg15932] Pure Functions in rules
- From: "Park" <djmp at earthlink.net>
- Date: Fri, 19 Feb 1999 03:27:07 -0500
- Sender: owner-wri-mathgroup at wolfram.com
Will Self asks why this doesn't work: In[80]:= {1,2,3} /. (m_List -> (2*#& /@ m)) Out[80]= {1,2,3} A delayed rule is needed. Try {1,2,3} /. m_List :> (2#&)/@m David Park djmp at earthlink.net