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 (/)

Is it possible?

Thanks,
wes

From: Beginners <beginners-bounces@haskell.org> on behalf of "Williams, Wes(AWF)" <wewilliams@paypal.com>
Reply-To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org>
Date: Friday, August 28, 2015 at 11:31 AM
To: "beginners@haskell.org" <beginners@haskell.org>
Subject: [Haskell-beginners] applicative style

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