test
= mapd (\x y -> x + y ) [1,2,3,4]
= mapd (+) [1,2,3,4]
= (map . foldl) (+) [1,2,3,4]
= map (foldl (+)) [1,2,3,4]
= [ foldl (+) 1
, foldl (+) 2
, foldl (+) 3
, foldl (+) 4 ]
The result is a list of functions. The first function takes a list of integers and sums it up, starting at 1. The second is similar, but begins with 2. And so on for the rest of the functions.
fgv, integer, , [[Integer] -> Integer].