Created
June 5, 2013 15:40
-
-
Save AdamSaleh/5714871 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
;works : | |
=>(-> | |
(rpc/get [1234]) | |
(map-project [:product_id :product_version_id]) | |
(rename-keys {:product_id :product, :product_version_id :product_version})) | |
{:product 313, :product_version 1416} | |
;doesn't | |
=> (-> | |
(rpc/get [1234]) | |
(map-project [:product_id :product_version_id]) | |
(rename-keys {:product_id :product, :product_version_id :product_version}) | |
(fn [a] (print a) a)) | |
CompilerException java.lang.IllegalArgumentException: Parameter declaration clojure.core/-> should be a vector, compiling:(NO_SOURCE_PATH:1:3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment