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

Method cons

src/jvm/clojure/lang/RT.java:700–708  ·  view source on GitHub ↗
(Object x, Object coll)

Source from the content-addressed store, hash-verified

698}
699
700static public ISeq cons(Object x, Object coll){
701 //ISeq y = seq(coll);
702 if(coll == null)
703 return new PersistentList(x);
704 else if(coll instanceof ISeq)
705 return new Cons(x, (ISeq) coll);
706 else
707 return new Cons(x, seq(coll));
708}
709
710static public Object first(Object x){
711 if(x instanceof ISeq)

Callers 15

alterMethod · 0.95
seqFromMethod · 0.95
pushMethod · 0.95
doRunMethod · 0.95
alterMethod · 0.95
alterRootMethod · 0.95
parseMethod · 0.95
checkSpecsMethod · 0.95
macroexpand1Method · 0.95
fwdPathMethod · 0.95
syntaxQuoteMethod · 0.95
consMethod · 0.95

Calls 1

seqMethod · 0.95

Tested by

no test coverage detected