runLengthEncode x
The result is useful in printed displays, as a way of making them more compact. The original list can be recovered by applying value to the elements of the result, and then using deepSplice, provided that x contains no entries that are sequences.
|
|
|
|
|
|
The object runLengthEncode is a method function with a single argument.
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_lists.m2:849:0.