collect Distinct Matching IDs
inline fun <ID : Any, T> Field<ID, T>.collectDistinctMatchingIDs(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<ID>): Set<FieldEntry<ID, T>>
Collects the distinct field entries whose ID 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 ID.