startsWith
trait Collection[A] {
def startsWith(as: Collection[A]): Boolean
def startsWith(as: Collection[A], j: Int): Boolean
}
startsWith
checks whether the collection as
is a prefix of this collection, returning true
if so.
The search can start at the given offset j
.
If as
is not a prefix of this collection then false
is returned.