原文 像这样:
A[] arr; A fragment = new A; ... arr.remove(fragment);
你可以这样:
import std.algorithm; arr = arr.remove(arr.countUntil(fragment));