"Jim - FooBar();" <jimpil1...@gmail.com> writes:

> On 21/06/13 14:01, Neale Swinnerton wrote:
>>
>>
>>     I really wish there were support for this in clojure.core: both
>>     "dofor"
>>     and "domap" would be very useful.
>>
>>
>> mapv is non-lazy, which gives you the semantics of a domap as long as you
>> don't mind a vector over a sequence
>
> exactly! also, that's why macros are for...every time I think "I wish there
> was X in clojure.core...", the next thought is macros :)
> what you wish is rather trivial to implement and it doesn't even have to be a
> macro...

Well, indeed, yes, I have implemented it. But, then I have to do require
statements everywhere, or I redo the implementation in every package, or
add a dependency. Lots of functions in clojure.core are trivial to
implement after all. dofor really is different from doseq because it
doesn't drop the head.

Didn't know about mapv though. Will use that lots!

Phil


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