(defn print-data2 [year]
    (dorun   (map #(print-data year %) (range 1 53 1))))


I think you have both a problem with the syntax of anonymous functions and a
problem of lazyness.
map only creates a lazy seq that do not get evaluated.

dorun do that


You can have a look at list comprehensions (for), if you want to keep
sequences
If you want to do a more imperative solution dotimes is your friend. (Nicest
when you want to print it, I think)

-- 
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