contains method

bool contains(
  1. T element
)

Returns true if element is found in the collection.

Implementation

bool contains(T element) {
  if (this is KtCollection) return (this as KtCollection).contains(element);
  return indexOf(element) >= 0;
}