Skip to content

Instantly share code, notes, and snippets.

@brehaut
Created November 7, 2011 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brehaut/1343875 to your computer and use it in GitHub Desktop.
Save brehaut/1343875 to your computer and use it in GitHub Desktop.
; archaic, an alternative to https://gist.github.com/1343842
(defn temp-gr
[start by end]
(fn [x]
(when (<= start x end)
(let [lower (* (quot x by) by)
upper (+ lower by)]
(keyword (str lower "-" upper))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment