*Meikel*, I do have one more question. I posted another question some time 
ago and the answer I got was 
this<https://groups.google.com/d/msg/clojure/79AXDY4Gp7w/As9LZYDT87AJ>. I 
am a little bit confused why *:let *is not required there but I had to use 
it to make it work in this case. 

Regards,

Ryan

On Wednesday, October 31, 2012 8:27:13 AM UTC+2, Meikel Brandmeyer 
(kotarak) wrote:
>
> Hi,
>
> Am Mittwoch, 31. Oktober 2012 01:29:11 UTC+1 schrieb Ryan T.:
>>
>> user=> (doseq [[id item] my-hash
>>>                       key (:a-key item)]
>>>                         (println key)) 
>>> [:value a value]
>>> [:value a value]
>>> nil
>>
>>
>>
> The next step in the doseq also introduces a seq traversal. So your map is 
> turned into a sequence of map entries. You can see this by providing map 
> with more than one entry. To get your result try the following (combined 
> with prn mentioned already):
>
> (doseq [[id item] my-hash
>         :let [key (:a-key item)]]
>   (prn key))
>
> Kind regards
> Meikel
>
>

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