Re: Re: Handling java streams..

2014-10-05 Thread adrian . medina
It's use cases like these that make me wish clojure.lang.Seqable and the like were protocols. Ah, one can dream... On Sunday, October 5, 2014 11:59:15 PM UTC-4, Zach Tellman wrote: > > Calling (-> stream .iterator iterator-seq) should give the desired result. > > On Wednesday, October 1, 2014 6:

Re: Re: Handling java streams..

2014-10-05 Thread Zach Tellman
Calling (-> stream .iterator iterator-seq) should give the desired result. On Wednesday, October 1, 2014 6:39:11 AM UTC-7, José Ricardo wrote: > > By nicer I meant something like being able to use, for example, map and > filter, just like I can do on a java.util.ArrayList (in clojure) and on a >

Re: Re: Handling java streams..

2014-10-01 Thread José Ricardo
By nicer I meant something like being able to use, for example, map and filter, just like I can do on a java.util.ArrayList (in clojure) and on a Stream (in java). On Saturday, September 27, 2014 1:47:38 AM UTC-4, Sean Corfield wrote: > > On Fri, Sep 26, 2014 at 11:51 AM, José Ricardo > wrote:

Re: Handling java streams..

2014-09-29 Thread John Gabriele
On Monday, June 27, 2011 5:50:52 PM UTC-4, Ken Wesson wrote: > > On Mon, Jun 27, 2011 at 6:52 AM, Andreas Liljeqvist > wrote: > > most clojurists(?) > > seems to roll their own solution. > > Probably because it's [clojure.java.io] not in clojure.core, which means > > a) it isn't found by searchin

Re: Re: Handling java streams..

2014-09-26 Thread Sean Corfield
On Fri, Sep 26, 2014 at 11:51 AM, José Ricardo wrote: > Hi, I'm not sure if resurrecting this thread is the right approach, but what > about Java 8 Streams (java.util.stream)? > > Are there any libraries out there for making java 8 streams handling nicer? > :) Well, this thread is certainly a bla

Re: Re: Handling java streams..

2014-09-26 Thread José Ricardo
Hi, I'm not sure if resurrecting this thread is the right approach, but what about Java 8 Streams (java.util.stream)? Are there any libraries out there for making java 8 streams handling nicer? :) On Tuesday, June 28, 2011 2:18:13 PM UTC-4, Sean Corfield wrote: > > On Tue, Jun 28, 2011 at 10:40

Re: Re: Handling java streams..

2011-06-28 Thread Sean Corfield
On Tue, Jun 28, 2011 at 10:40 AM, Ken Wesson wrote: > How else do you propose to explain the observation that "if it isn't > in clojure.core, it tends to be underused"? :) Well, that's your observation so it's rather circular logic :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- h

Re: Re: Handling java streams..

2011-06-28 Thread Ken Wesson
On Tue, Jun 28, 2011 at 2:19 AM, Meikel Brandmeyer wrote: > Hi, > > Am Montag, 27. Juni 2011 23:50:52 UTC+2 schrieb Ken Wesson: >> >> a) it isn't found by searching the docs in many of the usual ways; > > Is that really so hard? http://clojure.github.com/clojure top-right TOC: > "clojure.java.io"

Aw: Re: Handling java streams..

2011-06-27 Thread Meikel Brandmeyer
Hi, Am Montag, 27. Juni 2011 23:50:52 UTC+2 schrieb Ken Wesson: > a) it isn't found by searching the docs in many of the usual ways; > Is that really so hard? http://clojure.github.com/clojure top-right TOC: "clojure.java.io" If I look for stream handling, wouldn't that sound interesting? Sadl

Re: Handling java streams..

2011-06-27 Thread Sean Corfield
At this point I'll just put in a plug for the Clojure Atlas: typing stream into that yields several results that cover clojure.java.io/input-stream etc. On Mon, Jun 27, 2011 at 3:52 AM, Andreas Liljeqvist wrote: > Yes, bit ashamed that I didn't know that.. > > Kind of surprised though that not ma

Re: Handling java streams..

2011-06-27 Thread Ken Wesson
On Mon, Jun 27, 2011 at 6:52 AM, Andreas Liljeqvist wrote: > Yes, bit ashamed that I didn't know that.. > > Kind of surprised though that not many seem to use it, most clojurists(?) > seems to roll their own solution. Probably because it's not in clojure.core, which means a) it isn't found by se

Re: Handling java streams..

2011-06-27 Thread Andreas Liljeqvist
Yes, bit ashamed that I didn't know that.. Kind of surprised though that not many seem to use it, most clojurists(?) seems to roll their own solution. Thanks. 2011/6/27 Alan Malloy > clojure.java.io? > > On Jun 26, 2:25 pm, Andreas Liljeqvist wrote: > > Are there any libraries out there for m

Re: Handling java streams..

2011-06-26 Thread Alan Malloy
clojure.java.io? On Jun 26, 2:25 pm, Andreas Liljeqvist wrote: > Are there any libraries out there for making java stream handling nicer? > > My current project involves reading images from zipfiles, scaling them and > then write them to a new zipfile. > > Any code I have seen involve mostly writ

Handling java streams..

2011-06-26 Thread Andreas Liljeqvist
Are there any libraries out there for making java stream handling nicer? My current project involves reading images from zipfiles, scaling them and then write them to a new zipfile. Any code I have seen involve mostly writing java in clojure and setting up buffers and such. Certainly I could do t