On Tue, Feb 24, 2009 at 2:08 PM, Jason Wolfe <jawo...@berkeley.edu> wrote:
>
> On Feb 24, 2009, at 12:07 PM, Jason Wolfe wrote:
>
>>
>> On Feb 24, 2009, at 11:58 AM, Mark Volkmann wrote:
>>
>>> On Tue, Feb 24, 2009 at 12:23 PM, Jason Wolfe <jawo...@berkeley.edu>
>>> wrote:
>>>>
>>>> You could use doseq?
>>>
>>> I don't have a body to execute though. I need to build things with
>>> map first.
>>
>>
>> Huh?  As far as I know, as long as you're only iterating through one
>> collection,
>>
>> (doseq [x coll] (f x))
>>
>> has the exact same effect as
>>
>> (dorun (map f x))
>
> err, (dorun (map f coll))

Right. That's what I'm doing now ... in many places. I was just asking
if there is a single function that combines them. It seems reasonable
to have one since those to functions seem to be called together a lot.

-- 
R. Mark Volkmann
Object Computing, Inc.

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