copyDeep

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

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

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

Return

the start of the new list that holds a full copy of @list, use g_list_free_full() to free it

Since

2.34

Parameters

list

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

func

a copy function used to copy every element in the list