Created
July 9, 2014 17:32
-
-
Save noprompt/b477589baa5c83c1e307 to your computer and use it in GitHub Desktop.
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
(extend-protocol ISwap | |
om/MapCursor | |
(-swap! [this f] | |
(om/transact! this f)) | |
(-swap! [this f a] | |
(om/transact! this #(f a))) | |
(-swap! [this f a b] | |
(om/transact! this #(f a b))) | |
(-swap! [this f a b xs] | |
(om/transact! this #(apply f a b xs)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment