pub unsafe fn pop_two(stack: Stack, op_name: &str) -> (Stack, Value, Value)Expand description
Pop two values from the stack (for binary operations)
Returns the rest of the stack and both values (first popped, second popped). This is a common pattern for binary operations like add, subtract, etc.
§Safety
Stack must have at least two values
§Returns
(remaining_stack, second_value, first_value) - note: second is “a”, first is “b” for operations like a - b where b is on top