RosettaCodeData/Task/Run-length-encoding/Mathematica/run-length-encoding-4.math

4 lines
108 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
rle = RunLengthEncode[mystring]
{{"W", 12}, {"B", 1}, {"W", 12}, {"B", 3}, {"W", 24}, {"B", 1}, {"W", 14}}