MathGroup Archive 2005

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

Search the Archive

Re: enumerating list items


S=F8ren Merser wrote:
> hi
>
> is there a way to make each item in the list 'assignable', i.e. i want to
> enumerate the items like id=1, gender=2 etc.
>
> a={"id", "gender", "status", "odag"}
>
> b=Range@Length@a
>
> a=b
>
> regards soren
>
>
Evaluate[ToExpression[a]] = b

--
Peter Pein
Berlin


  • Prev by Date: Re: Re: Re: Re: ! operator
  • Next by Date: Re: precisions
  • Previous by thread: Re: enumerating list items
  • Next by thread: Re: enumerating list items