collectWithSelf

inline fun <ID : Any, T, R> Field<ID, T>.collectWithSelf(crossinline predicate: (ID, T) -> Boolean = { _, _ -> true }, crossinline transform: (ID, T) -> R): List<R>

Returns the list of field elements that satisfy the predicate, transformed using the transform function. including the local value.


inline fun <ID : Any, T> Field<ID, T>.collectWithSelf(crossinline predicate: (ID, T) -> Boolean = { _, _ -> true }): List<T>

Returns the list of field elements that satisfy the predicate. including the local value.