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