For example, here is a program that picks out the second largest element in a list. This program works by sorting the list and then picking out the element that is second from the end of the sorted list. (The position specification -2 indicates a position counted from the end of the list.)