
24 Jul
2010
24 Jul
'10
6:15 p.m.
On Saturday 24 July 2010 23:50:42, prad wrote:
i know how i can use the folds in some situations, but explaining their type definitions to reveal how they work, is coming out pretty convoluted when i make the attempt. :(
Maybe this helps: foldr op z [x1, x2, x3] = x1 `op` (x2 `op` (x3 `op` z)) foldr1 op [x1, x2, x3] = x1 `op` (x2 `op` x3)