Transducers build up transformation steps, with new generic operations like single arg `map` and `filter`, and then apply these transformations to a collection using an evaluation function. This function decides if operations are done lazily, eagerly, or on a channel.
Note that while this makes the place where laziness occurs more obvious, it is not really new. You can currently infer as well that `map` `filter` `concat` e.t.c are lazy. While `mapv` or `filterv` are not. On 11 Oct 2014, at 00:28, Mars0i <marsh...@logical.net> wrote: > > > On Friday, October 10, 2014 5:20:30 PM UTC-5, Mars0i wrote: > Maybe an ideal world would be one in which there was a global setting to > turn laziness on and off. When you want it, have it, and know your risks. > After looking at the source for some of the lazy functions, I've come to > suspect that such a feature would be completely nontrivial. > > Oh, wait, Rich Hickey's blog post about transducers says: > > But transducers can also be used for: > > a la carte laziness > ... > collection/iteration/laziness-free transforming reductions > > Not certain what this means. Haven't fully grokked reducers. > > -- > 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/d/optout. -- 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/d/optout.