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

distinctBy

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

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

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> Attribute<Sequence<T>>.distinctBy(selector: (T) -> K): Attribute<Sequence<T>>

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

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