ListG.length

Gets the number of elements in a #GList.

This function iterates over the whole list to count its elements. Use a #GQueue instead of a GList if you regularly need the number of items. To check whether the list is non-empty, it is faster to check @list against %NULL.

class ListG
uint
length
()

Return Value

Type: uint

the number of elements in the #GList

Meta