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:
{<number>,<number>} to denote what index should the character be retrieved and swapped with the destination index.{lwr}, {upr}, {alt} and {caml} to display text in either lowercase, uppercase, alternating or camel case respectively.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