Comment on Critique of Lazy Sequences in ClojureComments−grav3yI've been using the trick with enforcing realization by serializing to strings a few times. Slow, but quite useful in many contexts. However, instead of using `(with-out-str (pr ...`, there's simply`pr-str`, which is easier to remember.I'm typically using it like so: (defn realize [v] (doto v pr-str)) (binding [*some* binding] (realize (f some-nested-lazy-seq)))
Comments
I've been using the trick with enforcing realization by serializing to strings a few times. Slow, but quite useful in many contexts. However, instead of using `(with-out-str (pr ...`, there's simply`pr-str`, which is easier to remember.
I'm typically using it like so: