makeVector
makeVector(x_size[g_init_val] ) =>a_vectorArray
Description
Creates an array (vector) with the specified number of elements, and optionally initializes each entry.
Allocates a vector of x_size number of entries. Vector initializes each entry in the vector with g_init_val. The default value of g_init_val is the symbol unbound.
Arguments
Value Returned
Examples
V = makeVector( 3 0 )
=> array[3]:1955240
V[0]
=> 0
V[1]
=> 0
V[2]
=> 0
Related Topics
Return to top