The actual code I have working is:
let estimates = [5,5,8,8,2,1,5,2]
(/) <$> (Just $ foldl (+) 0 estimates) <*> ((Just . fromIntegral) (length estimates))
What I want to do is get rid of all the parentheses except (/)
Awesome, I clearly am off on my understanding.
How could I do this: "foldl (+) 0 estimates <+> (Just . fromIntegral) (length estimates)” without
the parenthesis?
Thanks,
Wes