How does that work: you appear to be iterating over two, unconnected, 
vectors.

And yes that's an example of the second option but doesn't explain if or 
why that's the best approach- which was the question ;)

On Thursday, 18 April 2013 19:48:40 UTC+1, Alan Malloy wrote:
>
> (for [[y cols] (map-indexed vector rows)
>       [x cell] (map-indexed vector cols)]
>   (display cell y x))
>
> ?
>
> On Thursday, April 18, 2013 3:14:19 AM UTC-7, edw...@kenworthy.info wrote:
>>
>> So, I want a 2 dimensional array.
>>
>> I think the best way to implement this is a vector of vectors.
>>
>> Now I want to display that array drawing each element relative to its 
>> position in the array.
>>
>> Is the best way to use doseq and manually maintain the indices? Or is it 
>> to use nested for-loops manually iterating of the vector-of-vectors?
>>
>

-- 
-- 
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/groups/opt_out.


Reply via email to