MCPcopy Index your code
hub / github.com/clojure/clojure / cons

Method cons

src/jvm/clojure/lang/PersistentTreeSet.java:67–71  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

65}
66
67public IPersistentSet cons(Object o){
68 if(contains(o))
69 return this;
70 return new PersistentTreeSet(meta(),impl.assoc(o,o));
71}
72
73public IPersistentCollection empty(){
74 return new PersistentTreeSet(meta(),(PersistentTreeMap)impl.empty());

Callers 1

createMethod · 0.95

Calls 3

metaMethod · 0.95
containsMethod · 0.65
assocMethod · 0.65

Tested by

no test coverage detected