Array.pack()

From ZCubes Wiki
Jump to navigation Jump to search


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