last¶ Syntax¶ last(list-expression) Parameters¶ list-expression An expression that evaluates to a list, including the name of a list variable. Description¶ Returns the value of the last item from the list parameter. It is an error if the list is empty. Examples¶ A_list = list(1,2,3) my_last_item = last(A_list) # my_last_item is now 3 See Also¶ arg_sort clear erase filter_by_index filter_values find_index index_values intersection is_in_list is_in_range last length list (action) pop push range range_list sample_with_replacement sample_without_replacement select set_difference shuffle sort union unique