|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
converts a list like this: [1, 1, 1, 1, 4, 4, 4, 1, 2] to this ["4 1", "3 4", 1, 2] or vice-versa, all without using globals. useful if you want to send a lot of integers across a mulit-user connection. to compress into a new list: "newlist = complist(somelist)" to decompress into a new list: "newlist = decomplist(compressedlist)"
|
|
|