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

elementAt

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

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

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> Attribute<Sequence<T>>.elementAt(index: Attribute<Int>): Attribute<T>
fun <T> Attribute<Sequence<T>>.elementAt(index: Int): Attribute<T>

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

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 Attribute<String>.elementAt(index: Attribute<Int>): Attribute<Char>
fun Attribute<String>.elementAt(index: Int): Attribute<Char>

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

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