Fork me on GitHub
#clojure-dev
<
2020-11-29
>
andy.fingerhut05:11:50

Does anyone happen to know off hand any classes in Clojure/Java that implement the Sequential interface (directly or indirectly), but do not implement java.util.List?

andy.fingerhut06:11:56

Also clojure.lang.PersistentQueue, which almost seems like it could be an oversight?

andy.fingerhut06:11:15

Also clojure.core.Eduction, which I have no guesses on whether that is intentional or not.

andy.fingerhut06:11:55

Ah, there is a ticket for the clojure.lang.PersistentQueue not implementing java.util.List, because of bad behavior it causes with = : https://clojure.atlassian.net/browse/CLJ-1059

thumbnail09:11:32

In rich's talk about transducers he specifically mentions eductions not implementing j.u.List, iirc it's just because the interface is so big. https://youtu.be/4KqUvG8HPYo around 45:00 :)

andy.fingerhut05:11:31

Found one with a bit of looking: clojure.core.VecSeq, which is (class (seq (vector-of :long 1)))