注意:所有元素必须具有相同的类型。以下代码将无法编译。
[]
<<
.len
in
slice()
my_array[start..end]
0
“my_array[…end]
my_array[start…]