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])
docstr_tok: ["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 ._compat import Sequence, Hashable
  from numbers import Integral
  from functools import reduce
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