Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / distinctBy
Go to reference
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
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