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

Method first

src/jvm/clojure/lang/RT.java:710–717  ·  view source on GitHub ↗
(Object x)

Source from the content-addressed store, hash-verified

708}
709
710static public Object first(Object x){
711 if(x instanceof ISeq)
712 return ((ISeq) x).first();
713 ISeq seq = seq(x);
714 if(seq == null)
715 return null;
716 return seq.first();
717}
718
719static public Object second(Object x){
720 return first(next(x));

Callers 15

nextElementMethod · 0.95
peekMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
toHostExprMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
macroexpand1Method · 0.95
analyzeSeqMethod · 0.95
evalMethod · 0.95

Calls 2

firstMethod · 0.95
seqMethod · 0.95

Tested by

no test coverage detected