Description

SwapN swaps the top N items on the stack with those below them.

Stack transformation: SwapN(1): [... x1 x2] -> [... x2 x1] SwapN(2): [... x1 x2 x3 x4] -> [... x3 x4 x1 x2]

SwapN is referenced in 1 repository

github.com/btcsuite/btcd