parameters: (self, idx, add)
docstring: Add a value to the idx-th element
docstring_summary: Add a value to the idx-th element
docstring_tokens: Add a value to the idx - th element
function: def update(self, idx, add):
          """Add a value to the idx-th element"""
          idx += 1
          while idx < len(self.array):
              self.array[idx] += add
              idx += idx & -idx
function_tokens: def update ( self , idx , add ) : idx += 1 while idx < len ( self . array ) : self . array [ idx ] += add idx += idx & - idx