Interface which contains conj?
Asked Answered
S

1

4

As an exercise, I am developing a data structure similar to Vector. I have implemented all interfaces which IPersistentVector extends, but I have not found the interface where 'conj' is defined. Which interface is that? Thanks!

Simas answered 8/1, 2012 at 20:51 Comment(0)
F
8

clojure.lang.IPersistentCollection/cons. It was named cons originally, and that's stuck around in the interface even though the Clojure function for it is now called conj.

Flivver answered 8/1, 2012 at 21:1 Comment(1)
Another example is rest which is c.l.ISeq/more on the interface side.Tankoos

© 2022 - 2024 — McMap. All rights reserved.