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

filterIndexed

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

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

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> Field<Sequence<T>>.filterIndexed(predicate: (index: Int, T) -> Boolean): Field<Sequence<T>>

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

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 Field<String>.filterIndexed(predicate: (index: Int, Char) -> Boolean): Field<String>

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

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