More idiomatic Clojure. Many thanks to Keith Irwin (https://github.com/zentrope)!