How can I combine two different types of lists and traverse the result in Haskell?
For example:
input: [1,2,3] ['A','B','C'],
output: ["A1","A2","A3","B1","B2","B3","C1","C2","C3"].
I tried making an example using Int and Char, like:
combine :: Int -> Char -> String
combine a b = show b ++ show a
This doesn't work, however, because if I use this function for combine 3 'A', the output will be "'A'3", not "A3".