ListSG.append

Adds a new element on to the end of the list. Note The return value is the new start of the list, which may have changed, so make sure you store the new value. Note Note that g_slist_append() has to traverse the entire list to find the end, which is inefficient when adding multiple elements. A common idiom to avoid the inefficiency is to prepend the elements and reverse the list when all elements have been added.

class ListSG
append
(
void* data
)

Parameters

data void*

the data for the new element

Return Value

Type: ListSG

the new start of the GSList

Meta