Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
swap [2019/09/05 20:41] – created korshun | swap [2019/09/05 20:42] (current) – korshun |
---|
====== swap ====== | ====== swap() ====== |
''any, any swap(any a, any b)'' | ''any, any swap(any a, any b)'' |
| |
[[new:multiple_return_values|Returns two variables]] in reverse order. This function exists to improve readability when swapping the values of two variables. | [[new:multiple_return_values|Returns two variables]] in reverse order. This function exists to improve readability when swapping the values of two variables. |
| |
===== Examples ===== | ==== Examples ==== |
Without ''swap()'': | Without ''swap()'': |
<code> | <code> |