好词典

arrays

UK //əˈreɪz//US //əˈreɪz//

词源

源自中古法语arei(排列),最终来自拉丁语ad-(向)+ radius(光线),原指光线排列。14世纪进入英语后逐渐发展出数学和编程领域的专业含义。

noun

❶ 指按一定顺序排列的数据集合,常用于编程中存储多个相同类型的元素,可通过索引快速访问。

“The program uses arrays to store student grades.”

(该程序使用数组存储学生成绩。)

“JavaScript arrays can hold different types of data.”

(JavaScript数组可以容纳不同类型的数据。)

❶ 指整齐排列的一组物品或事物,强调有序性和视觉上的排列效果。

“An array of trophies filled the display case.”

(陈列柜里整齐排列着许多奖杯。)

“The store offered an impressive array of cheeses.”

(商店提供了种类丰富的奶酪。)

同义词:collection, arrangement, sequence, matrix, grid

常见短语

array of — 用于描述大量多样化的物品或选择的集合,强调广泛性和多样性。

“The conference offered an array of workshops for attendees.”

(会议为参会者提供了丰富多彩的研讨会选择。)

array index — 特指编程中用于访问数组元素的数字标识符,从0开始计数。

“Remember that array indexes start at zero in most programming languages.”

(注意在多数编程语言中,数组索引是从零开始的。)