(defmacro one-of? "Short circuiting value comparison." ([val & possible] (let [v (gensym)] `(let [~v ~val] (or ~@(map (fn [p] `(= ~v ~p)) possible))))))
Comments top
No comments for one-of?. Log in to add a comment.