Skip to content

Instantly share code, notes, and snippets.

Created October 24, 2019 20:55
What would you like to do?
Parse list of pairs of numbers from STDIN, useful for parsing quiz input
(def pairs (for [_ (range numPairs)]
(map #(Integer/parseInt %) (re-seq #"[-\d.]+" (read-line)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment