Haskell - function (that returns a list) on each element in a list
- by Ben
The assignment is to create a multiples function and I essentially want todo the following code:
map (\t -> scanl (\x y -> x+y) t (repeat t)) listofnumbers
The problem is that the scanl function returns a list of results rather than the one which the map function requires.
So is there a function that will allow the return of lists?