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

Method cons

src/jvm/clojure/lang/PersistentQueue.java:131–136  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

129}
130
131public PersistentQueue cons(Object o){
132 if(f == null) //empty
133 return new PersistentQueue(meta(), cnt + 1, RT.list(o), null);
134 else
135 return new PersistentQueue(meta(), cnt + 1, f, (r != null ? r : PersistentVector.EMPTY).cons(o));
136}
137
138public IPersistentCollection empty(){
139 return EMPTY.withMeta(meta());

Callers

nothing calls this directly

Calls 3

listMethod · 0.95
metaMethod · 0.65
consMethod · 0.65

Tested by

no test coverage detected