nthData

fun nthData(list: List, n: <Error class: unknown class>): <Error class: unknown class>?

Gets the data of the element at the given position.

This iterates over the list until it reaches the @n-th position. If you intend to iterate over every element, it is better to use a for-loop as described in the #GList introduction.

Return

the element's data, or null if the position is off the end of the #GList

Parameters

list

a #GList, this must point to the top of the list

n

the position of the element