`std.container.dlist` supports `linearRemoveElement` `linearRemoveElement` removes the first occurence of an element from the dlist ----- import std.container : Dlist; import std.algorithm.comparison : equal; auto a = DList!int(-1, 1, 2, 1, 3, 4); a.linearRemoveElement(1); assert(equal(a[], [-1, 2, 1, 3, 4])); -----