On Sat, Nov 8, 2008 at 4:23 PM, verec <[EMAIL PROTECTED]> wrote: > Everything that can be interpreted as a `seq', clojure's `doseq' takes > care of it. > > What I am after are the "special cases" for things one could somehow > enumerate but are not a `seq'. > > A number range is one such thing, and clojure provides 'dotimes' to > handle this case. > > What could be the XYZ that are neither a `seq' nor a number range, for > which we would want a `doXYZ' ? > > In other words, is the set `doseq', `dotimes' and `doall' complete, > and if not, what is missing?
Of course, dotimes could be implemented in terms of doseq, e.g. (dotimes i n ...) (doseq i (take n (iterate inc 0)) ...) so really there aren't any special cases in Clojure. I can't think of anything that is sequence-like but couldn't be represented as a seq, so I think the bases are covered. :-) Best, Graham --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---