Question: Haskell 7.runLengthDecode:: [(Int, Char)] -> String Write a function that takes the output of runLengthEncode and returns the original string. Examples runLengthDecode [(1,'h'), (5,'i')] >runLengthDecode
Haskell
![Haskell 7.runLengthDecode:: [(Int, Char)] -> String Write a function that takes the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b6bd03f02_06066f3b6bc9b9dd.jpg)
7.runLengthDecode:: [(Int, Char)] -> String Write a function that takes the output of runLengthEncode and returns the original string. Examples runLengthDecode [(1,'h'), (5,'i')] >runLengthDecode $ runLengthEncode "whhhhaaaaat?" Permitted functions: (++),(),replicate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
