[Openmcl-devel] name (string) to function

Stas Boukarev stassats at gmail.com
Fri Dec 3 23:23:14 PST 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