Re: Transducers eduction vs sequence

2017-12-22 Thread Jonathon McKitrick
ield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > -- > *From:* clo...@googlegroups.com >

Re: Transducers eduction vs sequence

2017-12-22 Thread Francis Avila
Even though evaluation and realization of sequences is lazy, they cache their result after evaluation. If you consume an object from the `sequence` function more than once, the work is only done once. Sequences are iterable and reducible, but not as efficiently because of the caching and because

RE: Transducers eduction vs sequence

2017-12-22 Thread Sean Corfield
ing somebody, you're not really alive." -- Margaret Atwood From: clojure@googlegroups.com on behalf of Jonathon McKitrick Sent: Friday, December 22, 2017 6:32:54 AM To: Clojure Subject: Transducers eduction vs sequence I have a `get-summary` function that

Transducers eduction vs sequence

2017-12-22 Thread Jonathon McKitrick
I have a `get-summary` function that builds stats and returns them as a web service. Under the hood, it calls quite a few map, group-by, filter, etc. functions. I’m experimenting with transducers, and `sequence xform` does the trick most of the time. But I want to understand `eduction` use case