collect Matching Mapped
inline fun <ID : Any, T, R, C : MutableCollection<R>> Field<ID, T>.collectMatchingMapped(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<FieldEntry<ID, T>>, crossinline transform: (FieldEntry<ID, T>) -> R): List<R>
Collects the field entries that satisfy the given predicate, transforms them using transform, and returns the result as 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 transformed matching entries.
Parameters
reduction Type
specifies whether to include the local entry (default is ExcludingSelf).
predicate
the filter applied to each field entry.
transform
the mapping function applied to each matching entry.