Skip to content

Instantly share code, notes, and snippets.

@benthepoet
Last active February 15, 2019 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benthepoet/1c0d1cb6a6a47eda489886eca231d0e1 to your computer and use it in GitHub Desktop.
Save benthepoet/1c0d1cb6a6a47eda489886eca231d0e1 to your computer and use it in GitHub Desktop.
(defmacro do-until-eof (line &body body)
`(loop for ,line = (read-line *standard-input* nil :eof)
until (eq ,line :eof)
do ,@body))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment