1 2 3 4
f :: Int -> Int f x = sum [1..x] ^ 2 - sum . squares x where squares x = map (\i -> i^2) [1..x]
4:50: Warning: Avoid lambdaFound: \ i -> i ^ 2Why not: (^ 2)