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

Method indexOf

src/jvm/clojure/lang/ASeq.java:236–244  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

234}
235
236public int indexOf(Object o){
237 ISeq s = seq();
238 for(int i = 0; s != null; s = s.next(), i++)
239 {
240 if(Util.equiv(s.first(), o))
241 return i;
242 }
243 return -1;
244}
245
246public int lastIndexOf(Object o){
247 return reify().lastIndexOf(o);

Callers 12

internMethod · 0.45
resolveSymbolMethod · 0.45
maybeClassMethod · 0.45
resolveInMethod · 0.45
maybeResolveInMethod · 0.45
matchSymbolMethod · 0.45
matchSymbolMethod · 0.45
processCommandLineMethod · 0.45
doFormatMethod · 0.45
pushMethod · 0.45
getMethodMethod · 0.45
getDescriptorMethod · 0.45

Calls 4

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

Tested by

no test coverage detected