a function that accepts a string as an argument, and returns a new string where streaks of consecutive characters are compressed. For example “aaabbc” is compressed to “3a2bc”.
ahmadabdelhalim · @ahmadabdelhalim
ahmadabdelhalim · @ahmadabdelhalim · about 3 years
a function that accepts a string as an argument, and returns a new string where streaks of consecutive characters are compressed. For example “aaabbc” is compressed to “3a2bc”.