This file contains 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
;; * paste your code | |
;; * add a comment at the top telling which function to call |
This file contains 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
(defn right [[x y]] | |
{2 [(inc x) y]}) | |
(defn left [[x y]] | |
{4 [(dec x) y]}) | |
(defn down [[x y]] | |
{3 [x (inc y)]}) |