sample defun with return
Posted: Tue Oct 02, 2012 12:59 pm
I need a sample code Lisp .
A function(defun) returning value
A simple example
Thanks
Rodrigo
A function(defun) returning value
A simple example
Thanks
Rodrigo
Discuss and learn Lisp programming of all dialects. NOTICE: Site locked. No new users or posts.
http://www.lispforum.com/
Code: Select all
(defun value-returner () 'value)
Code: Select all
(defun return-a-value (return-value)
return-value)
(return-a-value 'test) ==> test
(return-a-value (* 3 6)) ===> 18