[plt-scheme] Question about how to get the value of function
On May 31, 2010, at 9:19 AM, Hsiu-Hao Tsao wrote:
> define y '(1 2 3 4))
> >(define dt 1)
> >(define foo
> (lambda (t) (do ((i 0 (+ i 1))) ((> i 3)) (if (and (>= t 0) (and (>= t (* i dt)) (< t (* (+ i 1) dt)))) (list-ref y i) #f))))
As the docs say:
"the value of the do form is #<void>"
(just F1 on do loop). Just like for loops in C and Java.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100531/8b5ada3f/attachment.html>