[racket] Call by Name

From: Joe Gilray (jgilray at gmail.com)
Date: Tue Nov 27 14:29:05 EST 2012

Hi, I have a bunch of functions with known names.  How do I call them?

For example.  If I have functions named "test1", "test2", ... "test999" I'd
like to call them all:

(define (bigtest)
  (define base "test")
  (for ([n (range 1 1000)])
    (call-by-name (string-append base (number->string n)))))

Thanks,
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121127/25dd67d8/attachment-0001.html>

Posted on the users mailing list.