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

Method indexOf

src/jvm/clojure/lang/ArraySeq.java:372–380  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

370 }
371
372 public int indexOf(Object o) {
373 if (o instanceof Number) {
374 double d = ((Number) o).doubleValue();
375 for (int j = i; j < array.length; j++)
376 if (d == array[j]) return j - i;
377 }
378
379 return -1;
380 }
381
382 public int lastIndexOf(Object o) {
383 if (o instanceof Number) {

Callers

nothing calls this directly

Calls 1

doubleValueMethod · 0.45

Tested by

no test coverage detected