
25 Sep
2015
25 Sep
'15
11:18 p.m.
Hello, I am a complete Haskell beginner and I am doing some exercises of my book but I am stuck with the following: Define myMax :: Ord a => [a] -> a which returns the maximum element of a list. I must use foldl1 or foldr1 and I am given the hint to use max which gets the maximum of 2 elements. I will very much appreciate if you help me solve it. Thanks in advance, JAMB