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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en