Check your spaces...

2011/6/17 FD <fabien.dub...@scarlet.be>:
> 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 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 to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to