Array.pack()

Revision as of 18:52, 5 February 2020 by Joseph (talk | contribs) (→‎Array.pack())
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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