A method to compress things by converting a string with repeated characters into a Tuple indicating the length of the string and the character.

Example

  • aaaaa (5,a)