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

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

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

2016-03-10 Thread Nicola Mometto
> > However, I don't understand the last output in which every 'result' prints > nil. > > > 2016년 3월 10일 목요일 오전 10시 15분 43초 UTC+9, Sean Corfield 님의 말: >> >> Can we at least get an example of situation where the zero-arity version >> would be called?

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

2016-03-09 Thread Philos Kim
we define it? > > > > Sean Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > > *From: *Clojure Mailing List > on > behal

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

2016-03-09 Thread Sean Corfield
Stephen Nelson Reply-To: Clojure Mailing List Date: Wednesday, March 9, 2016 at 12:23 PM To: Clojure Mailing List Subject: Re: Understanding init (the zero arity function) for transducers. This was discussed further in http://dev.clojure.org/jira/browse/CLJ-1569 On Wed, Mar 9, 2016

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

2016-03-09 Thread Stephen Nelson
This was discussed further in http://dev.clojure.org/jira/browse/CLJ-1569 On Wed, Mar 9, 2016 at 3:43 PM Patrick Curran wrote: > Thanks Alex, > > If you ever do get a chance, I'd be curious to know what it was. The more > I think about it the more I think Dan is correct. Also "scan" seems like a

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

2016-03-08 Thread Patrick Curran
Thanks Alex, If you ever do get a chance, I'd be curious to know what it was. The more I think about it the more I think Dan is correct. Also "scan" seems like a natural thing that one should be able to do without having to jump through hoops. On Monday, February 29, 2016 at 5:10:53 PM UTC-5,

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

2016-02-29 Thread Alex Miller
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 wrote: > > Hi, > > I was trying to write a transducer and the 0-arity

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