Once using direct style, once using foldr and once using list comprehensions to write the function of concatMap.
Following function was i wrote by foldr but it has some problems.**
concatMap' :: (a -> [b]) -> [a] ->[b]
concatMap' f []=[]
concatMap' f (x:xs)==foldr (\x acc->acc : f x) [] xs