RE: Why 'for', not 'from' ?
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jun 03, 2003
- 376 views
> From: Igor Kachan [mailto:kinz at peterlink.ru] > 1,2,3,4,5 is it "From 1 to 5"? Yes it is. Isn't it? > "ot 1 do 5" in Russian > > x=1,2,3,4,5 is it "From x=1 to x=5"? Yes it is. Isn't it? > "ot x=1 do x=5" in Russian > > Where is that "FOR" for ("dlya" in Russian) the loop's parameter? > > How can I say "From 1 to 5" another way in English? As someone pointed out, the use of 'for' likely comes from mathematical jargon: for x = 1 to 10 do could be translated as: let X = {1,2,3,4,5,6,7,8,9,10} for each x in X [sequential] do Matt Lewis