Traverses the xs
collection and checks that each item is of type B
.
Traverses the xs
collection and checks that each item is of type B
.
original collection xs
casted to Source[B]
java.lang.AssertionError
if at least one item cannot be cast to B
This methods is for compatibility with Scala 2.11.
Determines if two nested structures have the same elements in the same order.
Determines if two nested structures have the same elements in the same order.
Supports structures containing GenIterable
and Array
elements.
the type of the elements in the other structure, a supertype of A
the other nested structure to compare with
true if the two nested structures have the same elements in the same order, false otherwise
Returns a copy of this collection where elements at items(i)._1
are replaced
with items(i)._2
for each i.