contains

abstract operator fun contains(element: T): Boolean(source)

Checks whether this collection contains an element equal to element.

Also supports element in collection syntax.

Return

true if an equal element belongs to this collection.

Parameters

element

value to search for.