code: def to_list(self, n=None):
          
          if n is None:
              self.cache()
              return self._base_sequence
          else:
              return self.cache().take(n).list()
docs: Converts sequence to list of elements.
  
          >>> type(seq([]).to_list())
          list
  
          >>> type(seq([]))
          functional.pipeline.Sequence
  
          >>> seq([1, 2, 3]).to_list()
          [1, 2, 3]
  
          :param n: Take n elements of sequence if not None
          :return: list of elements in sequence