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

elementAtOrNull

fun <T> Field<Iterable<T>>.elementAtOrNull(index: Field<Int>): Field<T?>
fun <T> Field<Iterable<T>>.elementAtOrNull(index: Int): Field<T?>
fun <T> Field<List<T>>.elementAtOrNull(index: Field<Int>): Field<T?>
fun <T> Field<List<T>>.elementAtOrNull(index: Int): Field<T?>

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

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

This is simply a convenience function.

See Also

kotlin.collections.elementAtOrNull


fun <T> Field<Sequence<T>>.elementAtOrNull(index: Field<Int>): Field<T?>
fun <T> Field<Sequence<T>>.elementAtOrNull(index: Int): Field<T?>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.elementAtOrNull


fun Field<String>.elementAtOrNull(index: Field<Int>): Field<Char?>
fun Field<String>.elementAtOrNull(index: Int): Field<Char?>

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

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

This is simply a convenience function.

See Also

kotlin.text.elementAtOrNull