lastIndexOfSlice
trait Collection[A] {
def lastIndexOfSlice(as: Collection[A]): Int
def lastIndexOfSlice(as: Collection[A], j: Int): Int
}
lastIndexOfSlice
returns the index of the last element where the collection as
can be found as a slice.
The search can start at the given offset j
.
If as
cannot be found as a slice in this collection then this function returns -1
.