+----------+ +----------+ +----------+
| | | | | |
| Item 1 | | Item 1 | | Item 1 |
| Item 2 | | Item 3 | | Item 3 |
| Item 3 |--> item = takeItem(2) -->| Item 4 |--> insertItem(3, item) -->| Item 2 |
| Item 4 | | | | Item 4 |
| | | | | |
+----------+ +----------+ +----------+
+----------+ +----------+ +----------+
| | | | | |
| Item 1 | | Item 1 | | Item 1 |
| Item 2 | | Item 3 | | Item 3 |
| Item 3 |--> item = takeItem(2) -->| Item 4 |--> insertItem(3, item) -->| Item 2 |
| Item 4 | | | | Item 4 |
| | | | | |
+----------+ +----------+ +----------+
To copy to clipboard, switch view to plain text mode
Bookmarks