Skip to content

Instantly share code, notes, and snippets.

@llibra
Created March 26, 2012 04:04
Show Gist options
  • Save llibra/2202882 to your computer and use it in GitHub Desktop.
Save llibra/2202882 to your computer and use it in GitHub Desktop.
(do ((n 0 (1+ n)))
((= n 10))
(if (zerop (mod n 5))
(format t "~&~a" n)
(format t "~a" n)))
(let ((l '#1=("~&~a" "~a" "~a" "~a" "~a" . #1#)))
(do ((n 0 (1+ n))
(l l (cdr l)))
((= n 10))
(format t (car l) n)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment