LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   LISP: displaying a function definition (https://www.linuxquestions.org/questions/programming-9/lisp-displaying-a-function-definition-860216/)

wje_lq 02-02-2011 08:19 AM

LISP: displaying a function definition
 
Suppose I have a function defined thus:
Code:

(defun square (x) (* x x))
and I want to output the function's definition. Is there something I can say like
Code:

(wharblewharble 'square)
and get something printed out like:
Code:

(defun square (x) (* x x))
Edit:
Never mind, I found the (or at least an) answer:
Code:

(print #'square)

EricTRA 02-03-2011 01:06 AM

Hi,

Glad you found a solution. Off the Zero Reply List.

Kind regards,

Eric


All times are GMT -5. The time now is 06:28 AM.