Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Created June 5, 2013 15:40
Show Gist options
  • Save AdamSaleh/5714871 to your computer and use it in GitHub Desktop.
Save AdamSaleh/5714871 to your computer and use it in GitHub Desktop.
;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