copyDeep

fun copyDeep(list: SList, func: CopyFunc): SList

Makes a full (deep) copy of a #GSList.

In contrast with g_slist_copy(), this function uses @func to make a copy of each list element, in addition to copying the list container itself.

Return

a full copy of @list, use g_slist_free_full() to free it

Since

2.34

Parameters

list

a #GSList

func

a copy function used to copy every element in the list