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

filterNotNull

fun <T : Any> Attribute<Iterable<T?>>.filterNotNull(): Attribute<List<T>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.filterNotNull


fun <T : Any> Attribute<Sequence<T?>>.filterNotNull(): Attribute<Sequence<T>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.filterNotNull