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

filter

fun <T> Field<Iterable<T>>.filter(predicate: (T) -> Boolean): Field<List<T>>
fun <K, V> Field<Map<K, V>>.filter(predicate: (Entry<K, V>) -> Boolean): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.filter


fun <T> Field<Sequence<T>>.filter(predicate: (T) -> Boolean): Field<Sequence<T>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.filter


fun Field<String>.filter(predicate: (Char) -> Boolean): Field<String>

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

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

This is simply a convenience function.

See Also

kotlin.text.filter