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

find

fun <T> Field<Iterable<T>>.find(predicate: (T) -> Boolean): Field<T?>

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

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

This is simply a convenience function.

See Also

kotlin.collections.find


@JvmOverloads fun Field<Regex>.find(input: Field<CharSequence>, startIndex: Field<Int> = com.femastudios.dataflow.util.fieldOf(0)): Field<MatchResult?>
@JvmOverloads fun Field<Regex>.find(input: CharSequence, startIndex: Int = 0): Field<MatchResult?>
fun Field<Regex>.find(input: Field<CharSequence>, startIndex: Int = 0): Field<MatchResult?>
fun Field<Regex>.find(input: CharSequence, startIndex: Field<Int>): Field<MatchResult?>

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

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

This is simply a convenience function.

See Also

kotlin.text.Regex.find


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

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

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

This is simply a convenience function.

See Also

kotlin.sequences.find


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

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

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

This is simply a convenience function.

See Also

kotlin.text.find