按索引删除原数组中的一个元素。
array.delete(index)
index
Bool:删除成功返回 true,索引不存在返回 false。
Bool
true
false
items = [1, 2, 3] result = items.delete(1)