anyID

inline fun <ID : Any> Field<ID, *>.anyID(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<ID>): Boolean

Returns true if any ID in the field satisfies the given predicate.

The local ID is included in the check if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf (the default is ExcludingSelf).

Return

true if at least one matching ID exists, false otherwise.

Parameters

reductionType

controls whether the local ID is included in the check.

predicate

the condition to test for each ID.