indexOfSlice
trait Collection[A] {
def indexOfSlice(as: Collection[A]): Int
def indexOfSlice(as: Collection[A], j: Int): Int
}
indexOfSlice
returns the index of the first 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
.