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

Method indexOf

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

Source from the content-addressed store, hash-verified

449 }
450
451 public int indexOf(Object o) {
452 if (o instanceof Number) {
453 long l = ((Number) o).longValue();
454 for (int j = i; j < array.length; j++)
455 if (l == array[j]) return j - i;
456 }
457
458 return -1;
459 }
460
461 public int lastIndexOf(Object o) {
462 if (o instanceof Number) {

Callers

nothing calls this directly

Calls 1

longValueMethod · 0.45

Tested by

no test coverage detected