1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Foldl in PureScript

    purescriptPureScript
    0.11.7 - ^0.12

    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.