Is there a way to put 'require' where needed e.g. inside a function. Something like this:
(defn fun [x]
(do (require 'clojure.string)
('clojure.string/split x #"\s"))
)
Yes. It is.
(defn foo
[x]
(require 'clojure.string)
((resolve 'clojure-string/split) x #"\s"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With