Re: Eager (cat) in transducers

2014-09-22 Thread Alex Miller
This is an excellent question and the answer is: no, there is not a clever way (or a desire) to avoid this. The internals of transducer functions are never lazy. Each "step" will be eagerly completed for each output element. This is a fundamental difference between the lazy sequence and transdu

Eager (cat) in transducers

2014-09-21 Thread Glen Mailer
While watching Rich's strangeloop talk, I noticed a slight oddity in the definition of mapcat. I brought this up briefly in the IRC channel yesterday and the general consensus seemed to be that this is awkward, but not easily solvable: The original lazy definition of (mapcat) uses (concat), and