In the mean time, you can probably get pretty far with the java.util.stream.BaseStream#iterator method and the clojure.core/iterator-seq function.
On Tuesday, 23 February 2016, Alex Miller <a...@puredanger.com> wrote: > It may, however keep in mind that Clojure supports Java 1.6+ and Stream > was added in 1.8. That's not an impossible hurdle, but it might make sense > to make longer before hurdling it. > > On Tuesday, February 23, 2016 at 11:03:55 AM UTC-6, 676c7...@gmail.com > <javascript:_e(%7B%7D,'cvml','676c7...@gmail.com');> wrote: >> >> Hello! >> >> For interoperation with Java, Clojure’s seq supports the Iterable >> interface directly, which means that all Java collections are >> automatically seqable. seq also supports the CharSequence and >> java.util.Map interfaces, and arrays too. >> >> Would it make sense to have seq also support java.util.stream.Stream? >> Streams are just as important an abstraction as collections, and I >> believe that stream-producing APIs are becoming more and more common. It >> would be nice if Clojure supported it out of the box. >> >> An example (context: http://stackoverflow.com/q/35574155): >> >> (->> (.splitAsStream #"\s+" "one two three") >> (remove #(clojure.string/includes? % "o")) >> (map clojure.string/upper-case) >> first) >> >> Thanks, >> >> >> -- >> David >> >> -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure@googlegroups.com');> > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');>. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.