Fork me on GitHub
#clojure
<
2020-12-20
>
teodorlu11:12:40

Where is the right place to read docs for clojure.lang.Sequential? (The protocol)

teodorlu11:12:54

"read Clojure's source"?

clyfe11:12:08

"Java perspective" part

👍 3
teodorlu12:12:50

in case others are curious, there's a relevant Lambda Island episode: https://lambdaisland.com/episodes/clojure-seq-seqable.

seancorfield19:12:56

@U3X7174KS clojure.lang.Sequential is a Java interface, not a protocol. The sequential? predicate specifically tests for that interface, in the same way that the seq? predicate specifically tests for the ISeq interface. The latter actually has methods. The former is just a "marker" interface.

✔️ 3
seancorfield19:12:38

That Inside Clojure article is interesting in that it talks about seqable? which we do have now.

teodorlu22:12:45

Thanks for the clarification :thumbsup: