[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: associated lists

From: Paul D. Smith
Subject: Re: associated lists
Date: Thu, 23 Jun 2005 15:47:58 -0400

%% Levent Yilmaz <address@hidden> writes:

  ly> I have a set of associated pairs. And want to execute some command on 
  ly> each pair. Say for example,

  ly> # define present-past tense pairs as follows
  ly> present_tense = go   do  sit call
  ly> past_tense    = went did sat called

  ly> # somehow generate this phony command for each pair
  ly> # using eval (or by other(?) means)
  ly> @echo $(present) today. $(past) yesterday.

  ly> What I want to accomplish in effect is simply using $(foreach ...) but 
  ly> iterate simultaneously through more than one list...

I'd check out the pairmap function in the GMSL:

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]