collect Distinct Values
fun <ID : Any, T> Field<ID, T>.collectDistinctValues(reductionType: ReductionType = ExcludingSelf): Set<T>
Collects all distinct field values.
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 all distinct values in the field.
Parameters
reduction Type
specifies whether to include the local value (default is ExcludingSelf).