Understanding init (the zero arity function) for transducers.

2016-02-29 Thread Patrick Curran
Hi, I was trying to write a transducer and the 0-arity part of it never got called, which was unexpected. I did some searching and found this post: https://groups.google.com/forum/#!msg/clojure/uVKP4_0KMwQ/-oUJahvUarIJ. What Dan is proposing in that post would essentially solve my problem, but

Re: Understanding init (the zero arity function) for transducers.

2016-03-08 Thread Patrick Curran
:10:53 PM UTC-5, Alex Miller wrote: > > I think that Rich had an objection to this, however in the haziness of > time I don't recall specifically what it was. If I get a chance, I will ask > him this week. > > On Monday, February 29, 2016 at 3:27:15 PM UTC-6, Patrick Curran

Re: Understanding init (the zero arity function) for transducers.

2016-03-10 Thread Patrick Curran
pre: result = nil , input = 5 > > ; map-t [result input] post: result = nil > > ; filter-t [result input] post: result = nil > > > > ; filter-t [result] pre: result = nil > > ; map-t [result] pre: result = nil > > ; map-t [result] post: result = nil > > ;