Question: This is for the Haskell language. Given this function, I was wondering how one would approach this problem convertChar' :: [[(Int, Int, Int)]] -> [[Char]]

This is for the Haskell language.

Given this function, I was wondering how one would approach this problem

convertChar' :: [[(Int, Int, Int)]] -> [[Char]]

I have the following helper functions, not sure if they're needed

toList :: [[(Int, Int, Int)]] -> [(Int, Int, Int)] toList [(x)] = (x)

convertList :: [(Int, Int, Int)] -> [[(Int, Int, Int)]] convertList x = [x]

The `(Int, Int, Int)` will either be `(1, 1, 1) or (0, 0, 0)`

- If the tuple is (1, 1, 1) it will return the char. - If the tuple is (0, 0, 0) it will return " "

I was wondering what the smart way to approach this is. Would I have to convert the original input from [[()]] to [()] Apply the functions and then convert back to [[()]] before calling the converChar function recursively again?

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!