contains

operator fun Product.contains(item: Any?): Boolean

Tests whether this iterator contains a given value as an element. Note: may not terminate for infinite iterators.

Return

true if this iterator produces some value that is equal (as determined by ==) to elem, false otherwise.

Parameters

item

the element to test.