3 ms·
Why does the sum start with 1? Why not eg. foldl1' (+) $ map face_value dice
by ramchip 16y ago
Why does the sum start with 1? Why not eg.
foldl1' (+) $ map face_value dice
- loup-vaillant 16y agoIt should have started with 0. Sorry. And I avoided `foldl1` because I wanted to stay close to C++'s `accumulate`.