Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn selection-handler [tests]
- (dotimes [i (count tests)]
- (printf "(%s) %s: %s\n"
- (inc i)
- (first (nth tests i))
- (or (second (nth tests i))
- "--")))
- (loop [input (dec (get-number))]
- (if ((set (range (count tests))) input)
- (nth tests input)
- (recur (dec (get-number))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement