ConstantArray
ConstantArray(expr, n)
returns a list of
n
copies ofexpr
.
Examples
>> ConstantArray(a, 3){a, a, a}
>> ConstantArray(a, {2, 3}){{a, a, a}, {a, a, a}}
Implementation status
- ✅ - full supported
ConstantArray(expr, n)
returns a list of
n
copies ofexpr
.
>> ConstantArray(a, 3){a, a, a}
>> ConstantArray(a, {2, 3}){{a, a, a}, {a, a, a}}