DEV Community

Sameer
Sameer

Posted on

Answer:

foldr begins at the right-hand end of the list and combines each list entry with the accumulator value using the function you give it. The result is the final value of the accumulator after "folding" in all the list elements. Its type is:

foldr :: (a -> b -> b)

Top comments (0)