Array.pack()
Array.pack()
Remove consecutive duplicates and compact the array.
Example:
[1,2,3,[3,4,4],[3,4,4],3].pack()
1 | |
2 | |
3 | |
3 | 4 |
3
|
Remove consecutive duplicates and compact the array.
Example:
[1,2,3,[3,4,4],[3,4,4],3].pack()
1 | |
2 | |
3 | |
3 | 4 |
3
|