Fw: [plt-scheme] for in-range (was redefinition in module)

From: Jos Koot (jos.koot at telefonica.net)
Date: Sat Mar 1 07:36:40 EST 2008


2: compute the number of iterations in advance as
   n=(inexact->exact (ceiling (/ (- finish start) step))))
   and loop (for ((i (in-range 0 n 1))) (let ((var (+ start (* i step)))) etc))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080301/2099e687/attachment.html>

Posted on the users mailing list.