Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Why no 'step' in for loops?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: [Caml-list] Why no 'step' in for loops?

Am I missing something?

for i = 0 to 100 step 10 ...

I know I can emulate it my having another let-binding inside the loop,
but that's just ugly and hard to debug.


Richard Jones, Red Hat Inc. (London) and Merjis Ltd. Freshmeat projects:
MONOLITH is an advanced framework for writing web applications in C, easier
than using Perl & Java, much faster and smaller, reusable widget-based arch,
database-backed, discussion, chat, calendaring:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: