code: def nth(self, index):
          
          def _transform(xs):  # pylint: disable=missing-docstring, invalid-name
              try:
                  return [next(islice(iter(xs), index, None))]
  
              # Gracefully handle (a) running out of elements, and (b) negative indices
              except (StopIteration, ValueError):
                  return []
  
          return self.transform(_transform, 'nth')
docs: Return a query that selects the element at `index` (starts from 0).
          If no elements are available, returns a query with no results.
  
          Example usage:
  
          .. code:: python
  
              >> q = Query(lambda: list(range(5)))
              >> q.nth(2).results
              [2]
  
          Args:
              index (int): The index of the element to select (starts from 0)
  
          Returns:
              Query