containsSlice

trait Collection[A] {
  def containsSlice(as: Collection[A]): Boolean
}

containsSlice checks whether the collection as can be found as a slice in this collection, returning true if so.

If the collection as cannot be found as a slice in this collection then this function returns false.