📅  最后修改于: 2022-03-11 14:55:26.743000             🧑  作者: Mango
// If you don't care about ordering
arr[removeIndex] = arr[arr.length - 1];
arr.pop();
// Perserves order
for (uint i = removeIndex; i < arr.length - 1; i++) {
arr[i] = arr[i+1];
}
arr.pop();