Function SList.remove

Removes r from the list.

SList.Range remove (
  scope SList.Range r
);

Parameters

NameDescription
r The range to remove.

Returns

An empty range.

Precondition

r is extracted from this list.

Example

auto l1 = SList!int([5, 234, 30, 1]);
auto l2 = SList!int([5]);
auto r = l1[];

r.popFront();

assert(l1.remove(r).empty);
assert(l1 == l2);