docstr: Return a reversed version of list. Runs in O(n) where n is the length of the list.
  
  >>> plist([1, 2, 3]).reverse()
  plist([3, 2, 1])
  
  Also supports the standard reversed function.
  
  >>> reversed(plist([1, 2, 3]))
  plist([3, 2, 1])
code: def reverse(self):
      """
      Return a reversed version of list. Runs in O(n) where n is the length of the list.
  
      >>> plist([1, 2, 3]).reverse()
      plist([3, 2, 1])
  
      Also supports the standard reversed function.
  
      >>> reversed(plist([1, 2, 3]))
      plist([3, 2, 1])
      """
      result = plist()
      head = self
      while head:
          result = result.cons(head.first)
          head = head.rest
  
      return result
  
imports: from collections.abc import Sequence, Hashable
  from numbers import Integral
  from functools import reduce
  from typing import Generic, TypeVar
label_desc: Use image node_id 6 for calling the _PListBase obj's underlying member method code with example usage: obj.reverse() and returns: result