exchange ( m n seq -- )
Factor handbook > The language > Collections > Sequence operations > Destructive sequence operations

Prev:move ( to from seq -- )
Next:copy ( src i dst -- )


Vocabulary
sequences

Inputs and outputs
ma non-negative integer
na non-negative integer
seqa mutable sequence


Word description
Exchanges the mth and nth elements of seq.

Definition