[racket] Functions as symbols

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Oct 7 10:00:36 EDT 2011

6 hours ago, Mark Carter wrote:
> I would obtain the answer 3. Is there any way I can do this? The
> following works, but I'm wondering if it's the best way:
> (eval `(apply ,sym '(1 2)))
> A more basic question would be: is there any way I can convert from
> '+ to + - i.e. a symbol to a function?

Always good to read for such questions:


          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.