Created
June 15, 2010 19:05
-
-
Save marick/439533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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