contains

operator fun contains(o: Any?): Boolean

Returns true if this list contains the specified element.

More formally, returns true if and only if this list contains at least one element e such that Objects.equals(o, e).

Return

true if this list contains the specified element, false otherwise.

Parameters

o

Element whose presence in this list is to be tested.