Skip to main content

Range.get

getindexif_missing

Documentation

Gets an element from the Range at a specified index (0-based). If the index is invalid then if_missing is returned.

Arguments

  • index: The location in the Range to get the element from. The index is also allowed be negative, then the elements are indexed from the back, i.e. -1 will correspond to the last element.
  • if_missing: The value to return if the index is out of bounds.