I have been trying to beat this problem for some time. I have been given a "dictionary" with translations. The assignment is that i am going to use this dictionary for the purpose of translating words. example: "thanks" = "danke" The only requirment for this problem is that the type is that it is not allowed to import things like Data.list etc
dictionary (x:xs) (y:ys) = do
if ys == [] then return(x:xs) else dictionary (x:xs)(ys)
if xs == [] then return(x:xs) else dictionary (xs)(y:ys)
This is the furthest ive come, and it doesnt work. i feel like im on the right track but
the argument is string -> string.