Go ProSign in

Functor and map in PureScript

Vincent OrrVincent Orr

In this lesson, you will see how map takes our elements of a list or an array one at a time, performs an operation and returns us a new object.

You will then learn the inner workings of map by defining our own map function. In the process, you’ll see how we just created a functor in PureScript. We will explore what this means as well.

You must be a Member to view code