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

Method valAt

src/jvm/clojure/lang/APersistentVector.java:413–421  ·  view source on GitHub ↗
(Object key, Object notFound)

Source from the content-addressed store, hash-verified

411}
412
413public Object valAt(Object key, Object notFound){
414 if(Util.isInteger(key))
415 {
416 int i = ((Number) key).intValue();
417 if(i >= 0 && i < count())
418 return nth(i);
419 }
420 return notFound;
421}
422
423public Object valAt(Object key){
424 return valAt(key, null);

Callers

nothing calls this directly

Calls 4

isIntegerMethod · 0.95
nthMethod · 0.95
countMethod · 0.65
intValueMethod · 0.45

Tested by

no test coverage detected