Array Class Reference
<classdoc Array>
<descp>
Defines a true one-dimensional array with a limited number of operations similar those provided in other languages. The elements of the array, which store Python references, can be accessed using normal subscript notation, <figure img="array.jpg" size="400px"> </descp> <method Array params="size">
<descp>
Creates a one-dimensional array with elements organized in linear order. The number of elements in the array is provided as an argument and each element is initialized to <method __len__ op="len(x)"> <descp> Returns the length or number of elements in the array. </descp> <returns>The number of elements in the array.</returns> </method> <method clear>
<descp>
Sets every element to <method clear params="value">
<descp>
Clears the array by setting every element to <method __getitem__ op="v = x[index]"> <descp> Returns the value stored in an element of the array. </descp> <param index> The index of the element whose value is to be returned. It must be >= 0 and less than the number of elements in the array. </param> <returns>The value stored in the given array element.</returns> <throws>IndexError</throws> </method> <method __setitem__ op="x[index] = value">
<descp>
Stores a new value into an element of the array. The contents of the array element at position </classdoc>
|