Re-sizes the :class:`Array` by appending new :class:`Array` elements
        or removing :class:`Array` elements from the end.

        :param int size: new size of the :class:`Array` in number of
            :class:`Array` elements.

def resize(self, size):
        """ Re-sizes the :class:`Array` by appending new :class:`Array` elements
        or removing :class:`Array` elements from the end.

        :param int size: new size of the :class:`Array` in number of
            :class:`Array` elements.
        """
        if isinstance(self._data, Array):
            self._data.resize(size)