index

fun index(list: List, data: <Error class: unknown class>? = null): <Error class: unknown class>

Gets the position of the element containing the given data (starting from 0).

Return

the index of the element containing the data, or -1 if the data is not found

Parameters

list

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

data

the data to find