Qurak

ConstantArray

Khả dụng

Creates an array of repeated elements.

ConstantArray[c, n]
ConstantArray[c, {n1, n2, …}]
ConstantArray[x, 3] → {x, x, x}ConstantArray[0, 5] → {0, 0, 0, 0, 0}ConstantArray[1, 0] → {}ConstantArray[a, {2, 3}] → {{a, a, a}, {a, a, a}}

Được dùng trong

Chủ đề

Liên quan

Tất cả 6300 hàm · Dùng cái này từ một client MCP