Function Stack.copy

Stack copy() pure nothrow @safe;

Returns

a copy of the stack. The two stacks may then be modified independently of each other.