MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Changing a list with the information of other


On Mon, 01 Jul 2013 22:46:42 -0600, Joaquim Nogueira <jen at 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>



  • Prev by Date: Re: Rather simple function returns curious result.
  • Next by Date: Re: Changing a list with the information of other
  • Previous by thread: Re: Changing a list with the information of other
  • Next by thread: Re: Changing a list with the information of other