Update Documentation - List Chapter - Swap() Items.
@@ -544,4 +544,36 @@ Example:
"Server : " + mypara[:server] + nl +
"Port : " + mypara[:port]
+.. index::
+ pair: Lists; Swap Items
+
+Swap Items
+==========
+
+We can swap the list items using the Swap() function.
+
+Example:
+
+.. code-block:: ring
+
+ aList = [:one,:two,:four,:three]
+ see aList
+ see copy("*",50) + nl
+ swap(aList,3,4)
+ see aList
+
+Output
+
+.. code-block:: ring
+
+ one
+ two
+ four
+ three
+ **************************************************
+ one
+ two
+ three
+ four
+
