parameters: (self)
return_statement: return self.arr[(self.tail + 1) % (self.cap + 1)]
docstring: Get the last item from the deque.
docstring_summary: Get the last item from the deque.
docstring_tokens: Get the last item from the deque .
function: def getRear(self) -> int:
          """
          Get the last item from the deque.
          """
          if self.isEmpty():
              return MyCircularDeque.NULL_VAL
          return self.arr[(self.tail + 1) % (self.cap + 1)]
function_tokens: def getRear ( self ) -> int : if self . isEmpty ( ) : return MyCircularDeque . NULL_VAL return self . arr [ ( self . tail + 1 ) % ( self . cap + 1 ) ]