collectDistinctWithSelf

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

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


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

Returns the Set of field elements that satisfy the predicate, ignoring the local value.