Created
November 9, 2013 10:33
-
-
Save Willyfrog/7384126 to your computer and use it in GitHub Desktop.
Common lisp function for reading input, usefull for hakerrank challenges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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