ListSG.insert

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

class ListSG
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: ListSG

the new start of the GSList

Meta