Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created May 17, 2012 11:33
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 borkdude/2718301 to your computer and use it in GitHub Desktop.
Save borkdude/2718301 to your computer and use it in GitHub Desktop.
user> (defn left? [curr target] (neg? (- (rem curr 6) (rem target 6))))
#'user/left?
user> (left? 13 14)
true
user> (left? 14 14)
false
user> (left? 14 13)
false
user> (left? 1 6)
false
user> (left? 1 5)
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment