Documentation / dataflow / com.femastudios.dataflow.extensions / distinctBy
Go to reference

distinctBy

fun <T, K> Field<Iterable<T>>.distinctBy(selector: (T) -> K): Field<List<T>>

Same as distinctBy, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling distinctBy in the transformation function.

This is simply a convenience function.

See Also

kotlin.collections.distinctBy


fun <T, K> Field<Sequence<T>>.distinctBy(selector: (T) -> K): Field<Sequence<T>>

Same as distinctBy, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling distinctBy in the transformation function.

This is simply a convenience function.

See Also

kotlin.sequences.distinctBy