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.

Reply via email to