Difference between revisions of "Array.pack()"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[1,2,3,[3,4,4],[3,4,4],3].pack() | [1,2,3,[3,4,4],[3,4,4],3].pack() | ||
− | {| style="" id="TABLE2" class=" | + | {| style="" id="TABLE2" class="wikitable" donotcaption="true" | |
|- | |- | ||
| 1 | | 1 |
Revision as of 18:47, 5 February 2020
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
|