List.moveBack

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

Calling this function on an empty container causes null dereference.

struct List
scope pure nothrow @safe @nogc
moveBack
()

Examples

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

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

Meta