Function List.moveBack

Move of the first element in the list and return it.

List.ElementType moveBack() pure nothrow @nogc scope @safe;

Calling this function on an empty container causes null dereference.

Examples

auto list = List!(int).build(1, 2, 3);

assert(list.moveBack == 3);
list.popBack;
assert(list == [1, 2]);