Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface which contains conj?

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!

like image 224
Pranav Avatar asked Feb 21 '23 22:02

Pranav


1 Answers

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.

like image 96
amalloy Avatar answered Mar 02 '23 16:03

amalloy