Fork me on GitHub
#lumo
<
2017-10-25
>
richiardiandrea23:10:39

is there a way, currently to achive this in lumo?

boot.user=> (defn my-fn [n] n)
#'boot.user/my-fn
boot.user=> (var-get (resolve 'boot.user/my-fn))
#object[boot.user$my_fn 0x2735bf41 "boot.user$my_fn@2735bf41"]

richiardiandrea23:10:13

auto answer, maybe by querying the compiler state ()

richiardiandrea23:10:57

resolve already works

richiardiandrea23:10:57

I just don't know if I can get hold of the function object

anmonteiro23:10:05

@richiardiandrea @(resolve 'my.ns/my-var)?

richiardiandrea23:10:42

I tried var-get but I did not think of @

richiardiandrea23:10:19

thanks it works ! 😉