op_toaltstack

Function op_toaltstack 

Source
pub fn op_toaltstack(stack: &mut Stack) -> bool
Expand description

OP_TOALTSTACK: Moves the top item from the main stack to the top of the alt stack

Example: OP_TOALTSTACK([x], []) -> [], [x]

ยงArguments

  • stack - mutable reference to the stack