swap is a text manipulation function that swaps the positions of which characters are in a text. By default it uses the [text] type card, and is compatible with some task cards, such as:

As an example, we have the word programming, and we would like to swap P and g so that it becomes grogramminp. To do so, we can use the following syntax:

disp [text] (swap [text] programming {11,1})

//Expected result: grogramminp