Great
Thanks
On 19 déc, 17:50, Mark Rathwell wrote:
> in-ns and load are what you are looking for:
>
> ;; foo.clj
> (ns my.foo ...
> ...
> (load "foo_a")
>
> ;; foo_a.clj
> (in-ns 'my.foo)
> ...
>
>
>
>
>
>
>
> On Mon, D
File2 (ns two
(:use one))
Last file (ns all (:use two)) but functions of used-ns are not
imported in ns all.
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Hello,
In lisp, one can define functions within a package in multiple file.
Files have just to start with (in-package ...).
Is it possible to do it in clojure?
I made several attempts with
- load-file but I can't use a (declare xxx ...) in one file and (defn
xxx ...) in an other file
- a 'cascade'
Thanks
I change the function with this one
(defn testdoseq []
(do
(doseq [x '("a" "b" "c")]
(fn1 x)
)
(doseq [x '("1" "2" "3")]
(fn2 x)
)
))
On 17 juin, 20:26, Aaron Cohen wrote:
> On F
Hello,
What is wrong in this function?
(defn testmap []
(do
(map #(fn1 %)
'("a" "b" "c"))
(map #(fn2%)
'("1" "2" "3"))
))
If fn1 = fn2 = println
the result is
(1
2
nil 3
nil nil)
I expected this result
a
b
c
1
2
3
Thanks
--
You received this message because you are s
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email t
Hello,
Is there something similar to the lisp macro ignore-errors (http://
www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/mac_ignore-errors.html)
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to