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

Method nth

src/jvm/clojure/lang/RT.java:914–918  ·  view source on GitHub ↗
(Object coll, int n)

Source from the content-addressed store, hash-verified

912}
913
914static public Object nth(Object coll, int n){
915 if(coll instanceof Indexed)
916 return ((Indexed) coll).nth(n);
917 return nthFrom(Util.ret1(coll, coll = null), n);
918}
919
920static Object nthFrom(Object coll, int n){
921 if(coll == null)

Callers 5

getMethod · 0.95
parseMethod · 0.95
getMethod · 0.95
getMethod · 0.95
getFromMethod · 0.95

Calls 3

nthMethod · 0.95
nthFromMethod · 0.95
ret1Method · 0.95

Tested by

no test coverage detected