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

Method nth

src/jvm/clojure/lang/AMapEntry.java:21–28  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

19private static final long serialVersionUID = -5007980429903443802L;
20
21public Object nth(int i){
22 if(i == 0)
23 return key();
24 else if(i == 1)
25 return val();
26 else
27 throw new IndexOutOfBoundsException();
28}
29
30private IPersistentVector asVector(){
31 return LazilyPersistentVector.createOwning(key(), val());

Callers

nothing calls this directly

Calls 2

keyMethod · 0.65
valMethod · 0.65

Tested by

no test coverage detected