ListG.insert

Inserts a new element into the list at the given position.

class ListG
insert
(
void* data
,)

Parameters

data void*

the data for the new element

position int

the position to insert the element. If this is negative, or is larger than the number of elements in the list, the new element is added on to the end of the list.

Return Value

Type: ListG

the (possibly changed) start of the GList