TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:11678] create a list of numbers



On Wed, Dec 29, 1999 at 01:55:37PM -0600, Chris Engstrom wrote:
> I want to create a list of numbers for a "for" loop: ie
> for i in 1 2 3 4 5 6 7 8
> ....
> 
> but i do not want to type from 1 to (anything actually)
> and i was wondering if there was a way to give a range that
> would be expanded and could be used in a for loop.

What language?  In perl it's just for $i (1..10)

-- 
Jon Schewe
schewe@tcfreenet.org
http://eggplant.mtu.net/~jpschewe