Re: iterator strings as lists?
- To: mathgroup at smc.vnet.net
- Subject: [mg3523] Re: iterator strings as lists?
- From: Harald Berndt <haraldb at nature.berkeley.edu>
- Date: Wed, 20 Mar 1996 02:50:39 -0500
- Organization: University of California Forest Prodcts Lab
- Sender: owner-wri-mathgroup at wolfram.com
J.P. and/or Valerie Purswell wrote:
>
> listlimits1a = {i, 1, 5}
> >{i, 1, 5}
>
> Table[i, listlimits1a]
> >Table::itform:
> Argument listlimits1a at position 2
> does not have the
> >correct form for an iterator.Table[i, listlimits1a]
>
> Table[i, {i, 1, 5}]
> >{1,2,3,4,5,}
>
I swear I'll make this my golden Mathematica rule: If it doesn't do
what you want, wrap an Evaluate[] around it. I don't know why but
Table[i, Evaluate[listlimits1a]]
does what you want!
--
______________________________________________________________________
Harald Berndt, University of California
Research Specialist Forest Products Laboratory
Phone: 510-215-4224 FAX: 510-215-4299
==== [MESSAGE SEPARATOR] ====