I am trying to return a string and combine it with another. A table has been made with the following code.
type Table = [(Char, String)]
and the Table look like this.
t = [(A, "Apple"),(B, "Boy"),(C, "Car"),(D, "Day")...]
I would like to combine the string and return it. For example
(lookup 'A' t) ++ (lookup 'B' t) = "AppleBoy"
But its not be able to do that because a maybe value has been returned after lookup function. Please help me to understand how to do that.