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

Method lastIndexOf

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

Source from the content-addressed store, hash-verified

542 }
543
544 public int lastIndexOf(Object o) {
545 if (o instanceof Byte) {
546 byte b = ((Byte) o).byteValue();
547 for (int j = array.length - 1; j >= i; j--)
548 if (b == array[j]) return j - i;
549 }
550 if (o == null) {
551 return -1;
552 }
553 for (int j = array.length - 1; j >= i; j--)
554 if (o.equals(array[j])) return j - i;
555 return -1;
556 }
557}
558
559static public class ArraySeq_char extends ASeq implements IndexedSeq, IReduce{

Callers

nothing calls this directly

Calls 2

byteValueMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected