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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started