collect Distinct Values Matching Values
inline fun <ID : Any, T> Field<ID, T>.collectDistinctValuesMatchingValues(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<T>): Set<T>
Collects the distinct values of entries whose values satisfy the given predicate.
By default, the local value is excluded from the result. It is included only if reductionType is it.unibo.collektive.stdlib.util.IncludingSelf.
Return
a set of distinct values that satisfy the predicate.
Parameters
reduction Type
specifies whether to include the local value (default is ExcludingSelf).
predicate
the filter applied to each entry’s value.