last

fun last(list: SList): SList

Gets the last element in a #GSList.

This function iterates over the whole list.

Return

the last element in the #GSList, or null if the #GSList has no elements

Parameters

list

a #GSList