Question: How would you create a solution for this in Haskell ? You're likely familiar with run-length encoding, or RLE, a common form of compression for

How would you create a solution for this in Haskell?
You're likely familiar with run-length encoding, or RLE, a common form of compression for data that are repetitious. Write a run-length decoder, myRLD, which will decode something encoded in this way. Here is an example of how the input is encoded (as a list of tuples), and the desired output Main> myRLD (3, 'h,(1,'e', (7,'1'), (1, 'o),(1,'1,''),(1,'o'),4,'') You're likely familiar with run-length encoding, or RLE, a common form of compression for data that are repetitious. Write a run-length decoder, myRLD, which will decode something encoded in this way. Here is an example of how the input is encoded (as a list of tuples), and the desired output Main> myRLD (3, 'h,(1,'e', (7,'1'), (1, 'o),(1,'1,''),(1,'o'),4,'')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
