Function steap_by_steap::compression::RunLengthDecode
source · pub fn RunLengthDecode(s: &str) -> String
Expand description
Run-length decodes a string.
§Arguments
s
- A run-length encoded string slice to be decompressed.
§Returns
- A
String
containing the original uncompressed representation of the input string.
§Example
from your_module import run_length_decode
decompressed = run_length_decode("a3b3c3")
print(decompressed) # Output: "aaabbbccc"