Skip to content

Instantly share code, notes, and snippets.

@marick
Created June 15, 2010 19:05
Show Gist options
  • Save marick/439533 to your computer and use it in GitHub Desktop.
Save marick/439533 to your computer and use it in GitHub Desktop.
user=> (def cell [3 88])
#'user/cell
user=> (defn shifter [[x-shift y-shift]] [ (+ (first cell) x-shift)
(+ (second cell) y-shift)])
#'user/shifter
user=> (shifter [-1 1])
[2 89]
user=> (map shifter meaningful-values)
([2 87] [2 88] [2 89] [3 87] [3 89] [4 87] [4 88] [4 89])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment