Google Analytics

Sunday, February 20, 2005

Lisp Ahoy!

Well after much beating around the bush I finally whipped up my own Lisp function that does something:

(defun mkreverse (string)
(unless (string= "" string)
(let ((tmp (char string 0)))
(mkreverse (subseq string 1))
(format t (string tmp)))))

I'm quite sure there are better ways to print out strings in reverse (considering there's even a built in REVERSE function in Common Lisp) but it's a start.

No comments: