foldl: Fold over a list applying a function to each element and...

View source: R/Data.List.r

foldlR Documentation

Fold over a list applying a function to each element and accumulating the result.

Description

foldl :: (b -> a -> b) -> b -> [a] -> b

Usage

foldl(f, acc, xs)

Arguments

f

accumulator function

acc

accumulator

xs

list


schnecki/rhaskell documentation built on Oct. 30, 2022, 10:23 a.m.