Doing some small experiments I stumbled over map returning a lazy seq instead
of performing the function. I had to convert that to a doseq. Is there any
rationale for not having an eager map. Or was I just not reading the docs
properly?
--
Robert Ewald
(vec x) will force a lazy seq x and store it in a vector. (apply list
x) will force and store in a list.
--Chouser
Right, but this is precisely the reason for my asking. I was aware you could
create a macro, but if I do that a lot nobody could read my code any longer.
Everyone creating his own set of misguided utilities has been an argument
against lisp, and I think this is a function of communication inside the
community.
Using a ! to signify forcing is interesting, even though I am reserved because
scheme is using it to signify side effects and clojure is not free from side
effects.
Anyway, I suppose that doseq is the right idiom for communicating that you
want throw away the results.
--
Robert Ewald