5 ms·Haskell: let listsum = foldl (+)by jackweirdy 11y agoHaskell: let listsum = foldl (+)tome 11y agoYou probably want foldl' (+) 0codygman 11y agofoldl1 (+) ?ufo 11y agoI think its better to give a same result to the empty-list case when its possible.