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

Method indexOf

src/jvm/clojure/lang/PersistentList.java:307–315  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

305 }
306
307 public int indexOf(Object o){
308 ISeq s = seq();
309 for(int i = 0; s != null; s = s.next(), i++)
310 {
311 if(Util.equiv(s.first(), o))
312 return i;
313 }
314 return -1;
315 }
316
317 public int lastIndexOf(Object o){
318 return reify().lastIndexOf(o);

Callers

nothing calls this directly

Calls 4

seqMethod · 0.95
nextMethod · 0.95
equivMethod · 0.95
firstMethod · 0.95

Tested by

no test coverage detected