Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. (defun print-alphabet (x)
  2. (setq x (open (string x) :direction :output :if-does-not-exist :create :if-exists :supersede))
  3. (setq y 1)
  4. (loop
  5. (cond ((equal y char-code-limit) (close x) (return 'fin)))
  6. (princ y x)
  7. (princ #\tAB x)
  8. (princ (code-char y) x ) (terpri x)
  9. (princ #\tAB x)
  10. (princ (string (code-char y)) x)
  11. (incf y) ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement