Created
January 25, 2019 17:05
-
-
Save mfikes/ea891f8b438510e5643b3e93e54302a4 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
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