(self)
Reverse an array
Reverse an array
Reverse an array
def nsarray_reverse(self):
    """ Reverse an array """
    begin = 0
    end = len(self) - 1
    while begin < end:
        self.exchangeObjectAtIndex_withObjectAtIndex_(begin, end)
        begin += 1
        end -= 1
def nsarray_reverse ( self ) : begin = 0 end = len ( self ) - 1 while begin < end : self . exchangeObjectAtIndex_withObjectAtIndex_ ( begin , end ) begin += 1 end -= 1