Go ProSign in
Functional Programming Concepts in Purescript

Functional Programming Concepts in Purescript

Autoplay

    Foldl in PureScript

    Vincent OrrVincent Orr

    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