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

    Making functions using foldl in PureScript

    purescriptPureScript
    0.11.7 - ^0.12

    foldl gives us a lot of flexibility when working with lists and arrays. You can use foldl to create new functions to manipulate data exactly how you need to.

    As long as the types match, foldl will accept many functions to apply the specific behavior you need. In this lesson, we’ll look at how to create a map and filter using foldl.