position

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

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

Return

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

Parameters

list

a #GSList

llink

an element in the #GSList