Go ProSign in

Foldl in PureScript

Folds in PureScript take a List, Array, or some datatype and recursively apply a function to each item which will produce us a single value.

In this lesson, we are going to see what folds are and how they are used to fold over arrays and other types by defining our own fold function.

You must be a Member to view code