parameters: (self, A)
return_statement: return l
docstring: :type A: List[int]
          :rtype: int
docstring_summary: :type A: List[int]
          :rtype: int
docstring_tokens: : type A : List [ int ] : rtype : int
function: def peakIndexInMountainArray(self, A):
          """
          :type A: List[int]
          :rtype: int
          """
          l, r = 0, len(A)-1
          while l < r:
              mid = (l + r)//2
              if A[mid] <= A[mid+1]:
                  l = mid + 1
              else:
                  r = mid
  
          return l
function_tokens: def peakIndexInMountainArray ( self , A ) : l , r = 0 , len ( A ) - 1 while l < r : mid = ( l + r ) // 2 if A [ mid ] <= A [ mid + 1 ] : l = mid + 1 else : r = mid return l