If I remember rightly I solved this by binding *ns* before the eval, e.g.
(binding [*ns* some-namespace]
(eval form))
On Saturday, March 24, 2012 5:12:29 PM UTC, Renat Yuldashev wrote:
>
> How to evaluate each form from the vector of forms inside of the different
> namespace?
> I want to have
How to evaluate each form from the vector of forms inside of the different
namespace?
I want to have a seq of the evaluation results as a result.
Smth. like this:
(eval-with-ns 'user ['(+ 1 2 3) '(- 5 4) '(defn f [] [])])
=> (6 3 #'user/f)
I know about with-ns, but don't know how to use it to so