Go to reference
elementAtOrNull
fun <T> Attribute<Iterable<T>>.elementAtOrNull(index: Attribute<Int>): Attribute<T?>
fun <T> Attribute<Iterable<T>>.elementAtOrNull(index: Int): Attribute<T?>
fun <T> Attribute<List<T>>.elementAtOrNull(index: Attribute<Int>): Attribute<T?>
fun <T> Attribute<List<T>>.elementAtOrNull(index: Int): Attribute<T?>
Same as elementAtOrNull, but accepts Attribute and returns a new Attribute.
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> Attribute<Sequence<T>>.elementAtOrNull(index: Attribute<Int>): Attribute<T?>
fun <T> Attribute<Sequence<T>>.elementAtOrNull(index: Int): Attribute<T?>
Same as elementAtOrNull, but accepts Attribute and returns a new Attribute.
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 Attribute<String>.elementAtOrNull(index: Attribute<Int>): Attribute<Char?>
fun Attribute<String>.elementAtOrNull(index: Int): Attribute<Char?>
Same as elementAtOrNull, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling elementAtOrNull in the transformation function.
This is simply a convenience function.
See Also