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

Method indexOf

src/jvm/clojure/lang/APersistentVector.java:193–198  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

191}
192
193public int indexOf(Object o){
194 for(int i = 0; i < count(); i++)
195 if(Util.equiv(nth(i), o))
196 return i;
197 return -1;
198}
199
200public int lastIndexOf(Object o){
201 for(int i = count() - 1; i >= 0; i--)

Callers 1

sigTagMethod · 0.95

Calls 3

equivMethod · 0.95
nthMethod · 0.95
countMethod · 0.65

Tested by

no test coverage detected