Hello, 

Im now at the last exercise of the beginners exercise of 4clojure.

I figured out that this solution works.

(fn [default lijst1]
  (loop [lijst lijst1 d {}]
     (if (empty? lijst)
       d
       (recur (rest lijst) (assoc d (first lijst) default)))))

But as I see it lijst lijst 1 and d are all the same. They all contains the 
collection which has to fill in the end collection.
As a example I mean  default = 0 lijst 1 [:a :b: :c] 
then lijst1 and d also contains [:a :b:c]  so what is then the point of 
using 3 arguments.

Roelof

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to