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

elementAt

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

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

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

This is simply a convenience function.

See Also

kotlin.collections.elementAt


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

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

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

This is simply a convenience function.

See Also

kotlin.sequences.elementAt


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

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

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

This is simply a convenience function.

See Also

kotlin.text.elementAt