copy

fun copy(list: List): List

Copies a #GList.

Note that this is a "shallow" copy. If the list elements consist of pointers to data, the pointers are copied but the actual data is not. See g_list_copy_deep() if you need to copy the data as well.

Return

the start of the new list that holds the same data as @list

Parameters

list

a #GList, this must point to the top of the list