Re: same ns multiple file

2011-12-19 Thread FD
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

Re: same ns multiple file

2011-12-19 Thread FD
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

same ns multiple file

2011-12-19 Thread FD
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'

Re: map

2011-06-17 Thread FD
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

map

2011-06-17 Thread FD
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

Re: ignore-errors

2011-02-21 Thread FD
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

ignore-errors

2011-02-21 Thread FD
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