ConstantArray
ConstantArray[c, n]
creates a list of n
copies of c
.
Attributes[ConstantArray] := {Protected}
Simple examples
In[1]:= ConstantArray[a, 3] Out[1]= {a, a, a}
ConstantArray[c, n]
creates a list of n
copies of c
.
Attributes[ConstantArray] := {Protected}
In[1]:= ConstantArray[a, 3] Out[1]= {a, a, a}