[Openmcl-devel] name (string) to function

Stas Boukarev stassats at gmail.com
Sat Dec 4 07:23:14 UTC 2010


Taoufik Dachraoui <dachraoui.taoufik at gmail.com> writes:

> Hello
>
>
> I would like to return the function object from a string
>
> (f "+") == (function +)

(defun f (string)
  (let ((symbol (find-symbol string)))
    (when (fboundp symbol)
      (fdefinition symbol))))
      
-- 
With Best Regards, Stas.



More information about the Openmcl-devel mailing list