Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created January 25, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/ea891f8b438510e5643b3e93e54302a4 to your computer and use it in GitHub Desktop.
Save mfikes/ea891f8b438510e5643b3e93e54302a4 to your computer and use it in GitHub Desktop.
cljs.user=> (def my-inc (with-meta inc {:a 2}))
#'cljs.user/my-inc
cljs.user=> (my-inc 17)
18
cljs.user=> (js/cljs.user.my_inc 17)
cljs.user.my_inc is not a function. (In 'cljs.user.my_inc((17))', 'cljs.user.my_inc' is an instance of MetaFn)
cljs.user=> (def my-inc' (fn [x] (my-inc x)))
#'cljs.user/my-inc'
cljs.user=> (js/cljs.user.my_inc_SINGLEQUOTE_ 17)
18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment