exchange

Function exchange 

Source
pub fn exchange<WIRE: InterpreterTypes, H: ?Sized>(
    context: InstructionContext<'_, H, WIRE>,
)
Expand description

Implements the EXCHANGE instruction.

Swaps the N+1th stack item with the M+1th stack item, with N, M given by an immediate.