News for hackers. Stuff that matters.
Re:Study of non-programmers' solutions to programming proble... by tome on Saturday April 16, 2016 @10:03AM (#11510621)
You probably want foldl' (+) 0
Re:Study of non-programmers' solutions to programming proble... by codygman on Saturday April 16, 2016 @12:28PM (#11511161)
foldl1 (+) ?
Re:Study of non-programmers' solutions to programming proble... by ufo on Saturday April 16, 2016 @01:34PM (#11511463)
I think its better to give a same result to the empty-list case when its possible.