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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!