I was reading a code sample that calculates the factorial using Lisp as below:
(defun fatorial (n)
(cond
((= n 1) 1)
(t (* n (fatorial (- n 1))))))
So, I was wondering what is t
in this code sample? Does it have any special meaning in Lisp? I searched but couldn't find my answer!
fatorial
because it results in afat
stack footprint. – Pascha