Takes the last item out of a list.
List<T>
The list.
T
The last item of the list.
Here is an example: