position

fun position(list: List, llink: List): <Error class: unknown class>

Gets the position of the given element in the #GList (starting from 0).

Return

the position of the element in the #GList, or -1 if the element is not found

Parameters

list

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

llink

an element in the #GList