isIn

infix fun <T> KProperty<Collection<T>>.isIn(value: T): () -> Boolean(source)

Check if the value is in the specified collection property.

Return

A lambda function that returns true if the condition is met, false otherwise.

Parameters

value

The value to check for existence in the collection.