A function that takes:
- Binary function
- Identity value
- List of other values
- Applies the binary function right associative
Type
>>> :t foldr
foldr :: (a -> b -> b) -> b -> [a] -> bA function that takes:
>>> :t foldr
foldr :: (a -> b -> b) -> b -> [a] -> b