Hacker News new | ask | show | jobs
by kickopotomus 2132 days ago
Alternatively, since min and max are part of clojure.core:

   (-> n
       (max vmin)
       (min vmax))