reverse

fun reverse(list: List): List(source)

Reverses a #GList. It simply switches the next and prev pointers of each element.

Return

the start of the reversed #GList

Parameters

list

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