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

filterIndexed

fun <T> Attribute<Iterable<T>>.filterIndexed(predicate: (index: Int, T) -> Boolean): Attribute<List<T>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.filterIndexed


fun <T> Attribute<Sequence<T>>.filterIndexed(predicate: (index: Int, T) -> Boolean): Attribute<Sequence<T>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.filterIndexed


fun Attribute<String>.filterIndexed(predicate: (index: Int, Char) -> Boolean): Attribute<String>

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

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

This is simply a convenience function.

See Also

kotlin.text.filterIndexed