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
ma non-negative integer
na non-negative integer
seqa mutable sequence


Outputs
None

Word description
Exchanges the mth and nth elements of seq.

Definition