ListG.position

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

class ListG
int
position

Parameters

an element in the #GList

Return Value

Type: int

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

Meta