Page 1 of 1

basic, but I don't understand

Posted: Tue Nov 26, 2013 7:24 am
by HomuciferMadokami

Code: Select all

(defun op(n)
	(nth (mod n 3) '(+ - *))
)
(defun pre-op(n)
	(nth (mod n 4) '(sqrt sin log))
)
(defun const(n)
	(nth (mod n 11) '(0.1 1 2 3 4 5 6 7 8 9))
)
((op 0) 3 2)
so I have that code, and I'm expecting the
so uh, how to make the ((op 0) 3 2)
become (+ 3 2)

Re: basic, but I don't understand

Posted: Thu Nov 28, 2013 4:17 pm
by sylwester
This is a double post. I've answered this thread!