collect Matching Values
inline fun <ID : Any, T> Field<ID, T>.collectMatchingValues(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<T>): List<FieldEntry<ID, T>>
Collects all entries whose values satisfy the given predicate into a list.
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 list of field entries whose values match the predicate.
Parameters
reduction Type
specifies whether to include the local entry (default is ExcludingSelf).
predicate
the filter applied to each entry’s value.