Returns the last item of the list {0}. If the list is empty, an exception is thrown. This function takes an optional parameter, ...

Returns the last item of the list {0}. If the list is empty, an exception is thrown.
 This function takes an optional parameter, {1}, to support gathering multiple items or filtering items. {1} can be specified in three ways:
 
  • If a number is specified, up to that many items are returned.
  • If a condition is specified, all items are returned that initially meet the condition, starting at the end of the list. Once an item fails the condition, no further items are considered.
  • If this parameter is null the last item in the list is returned.