Backwards compatibilty and loop counter
Torbjörn Lager
lager at ling.gu.se
Tue Oct 29 00:58:50 CET 2002
Gabor Szokoli wrote:
> And about the for loop, is there anythinga little less ugly than this:
> for Element in ElementList Counter in 1 .. {List.length ElementList}
> do skip end
Yes, I believe you can do:
for Element in ElementList Counter in 1;Counter+1 do
....
end
(See the Loop Support documentation Section 1.1.)
Cheers,
Torbjörn
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list