Advertisement
Guest User

Untitled

a guest
Mar 27th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. (with-open-file (stream (nth 1 sb-ext:*posix-argv*))
  2. (loop for line = (read-line stream nil) do (
  3. let ((prev) (cur))
  4. (cond
  5. ((and (null prev) (null cur))
  6. (setf prev line)
  7. )
  8. ((and prev (null cur))
  9. (setf cur line)
  10. )
  11. ((and prev cur)
  12. (setf prev cur)
  13. (setf cur line)
  14. )
  15. )
  16. while line do (
  17. write(get-indent line)
  18. )
  19. )
  20. )
  21. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement