Recently I was writing a little CLI script which needed to repeatedly read dates from the console (the number of dates to read was calculated and could be different each time).
You can do something like this:
(defn read-dates [n] (doall (for [_ (range n)] (java.util.Date/parse (read-line))))) (def my-dates (read-dates 5)) ;Read 5 dates from console