Function LinkedList.removeAfter

Remove value after element.

void removeAfter (
  LinkedListElement!T* element
);

Note

element must be not null.

Example

LinkedList!int list;
scope(exit) list.free();

auto first = list.insertBack(1);
auto second = list.insertBack(2);
auto third = list.insertBack(3);
list.removeAfter(first);

import std.algorithm : equal;
assert(equal(list.byElement(), [1,3]));