Y
Hacker News
new
|
ask
|
show
|
jobs
by
jackweirdy
3884 days ago
Haskell:
let listsum = foldl (+)
1 comments
tome
3884 days ago
You probably want foldl' (+) 0
link
codygman
3884 days ago
foldl1 (+) ?
link
ufo
3884 days ago
I think its better to give a same result to the empty-list case when its possible.
link