DEV Community


Discussion on: Daily Challenge #225 - Square'n'Sum

louy2 profile image
Yufan Lou • Edited
squareSum = let square x = x * x in getSum . foldMap (Sum . square)

Btw, you gave "tests" but the tests don't have the supposed results. I know I can hand calculate but still they are not complete test cases.