fun lastIndexOfFromTo(element: Byte, from: Int, to: Int): Int {if (size === 0) return -1 checkRangeFromTo(from, to, size) val theElements: ByteArray = elements for (i in to downTo from) { if (element == theElements[i]) { return i } } return -1 }
Returns the index of the last occurrence of the specified element . Returns < code > -1 < /code > if the receiver does not contain this element . Searches beginning at < code > to < /code > , inclusive until < code > from < /code > , inclusive . Tests for identity .