Re: Question about doseq

2012-10-31 Thread Ryan T.
Thanks Meikel, your answer was very clear. On Wednesday, October 31, 2012 12:49:06 PM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > I'm not sure what you are refering to in the provided link. If it's eg. > about :warehouses, then the difference is, that :warehouses contains a > vector i

Re: Question about doseq

2012-10-31 Thread Meikel Brandmeyer (kotarak)
Hi, I'm not sure what you are refering to in the provided link. If it's eg. about :warehouses, then the difference is, that :warehouses contains a vector in the example in the link. So you basically walk the warehouse vector one warehouse at a time. But here you of only a single item (the map)

Re: Question about doseq

2012-10-31 Thread Ryan T.
*Meikel*, I do have one more question. I posted another question some time ago and the answer I got was this. 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

Re: Question about doseq

2012-10-31 Thread Ryan T.
Thank you both for your replies, they were very helpful. Regards, Ryan On Wednesday, October 31, 2012 2:29:11 AM UTC+2, Ryan T. wrote: > > Hello all, > > I have the following code: > > (def my-hash {"1" {:a-key {:value "a value"} :another-key "another value" >>> :a-third-key []} >> >>

Re: Question about doseq

2012-10-30 Thread Meikel Brandmeyer (kotarak)
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 traver

Re: Question about doseq

2012-10-30 Thread dennis zhuang
Please use prn insteadof println. By default, pr and prn print in a way that objects can be read by the reader,but print and println produce output for human consumption. 2012/10/31 arekanderu > Hello all, > > I have the following code: > > (def my-hash {"1" {:a-key {:value "a value"} :another-k

Question about doseq

2012-10-30 Thread arekanderu
Hello all, I have the following code: (def my-hash {"1" {:a-key {:value "a value"} :another-key "another value" >> :a-third-key []} > > "2" {:a-key {:value "a value"} :another-key "another >> value" :a-third-key []}} > > In the following example i get the following result: