[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enumerating list elements
From: |
Christian Rishøj Jensen |
Subject: |
Re: Enumerating list elements |
Date: |
Fri, 11 Mar 2011 14:23:17 +0100 |
On Mar 11, 2011, at 1:12 PM, Krzysztof Cieniuch wrote:
> Do you mean this:
>
> FACTORS = form pos cluster
> #set to factor_i:=x if you want to start index from 1
> factor_i:=
> $(foreach factor,$(FACTORS), \
> $(eval $(factor):=$(words $(factor_i))) \
> $(eval factor_i+=x))
>
> $(info form=$(form))
> $(info pos=$(pos))
> $(info cluster=$(cluster))
Exactly! This solves the problem.
I didn't know the words function.
Thank you
Christian