Macsyma supports this:
array(ar,3)$
arrayfill(ar,[0,1,2,3])$
The equivalent with Maxima is (I think)
array(ar,3)$
fillarray(ar,[0,1,2,3])$
Doing this, however, results in:
Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:
#:G1752 is not of type (OR NULL VECTOR CONS)
Doing
array(a0,3)$
fillarray(a0,[1.0,2.0,3.0,4.0]);
gives
Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:
|$a0| is not of type (OR NULL VECTOR CONS)
Logged In: YES
user_id=28849
Patch from Wolfgang Jenkner applied.