Skip to content

Instantly share code, notes, and snippets.

@Willyfrog
Created November 9, 2013 10:33
Show Gist options
  • Save Willyfrog/7384126 to your computer and use it in GitHub Desktop.
Save Willyfrog/7384126 to your computer and use it in GitHub Desktop.
Common lisp function for reading input, usefull for hakerrank challenges
(defun get-hr-parameters (&optional (coerce #'identity))
"gets all the parameters and puts them in a list"
(loop
for input-line = (read-line t nil :eof)
until (eq input-line :eof)
collect (funcall coerce input-line)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment