Since now the minimum required Java version is 8 (I believe) is there any plan to implement this in core?
On Tuesday, 23 February 2016 18:06:48 UTC+1, Alex Miller 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, 676c...@gmail.com > <javascript:> 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 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.