How to use fmap to only change the input or output type?

Viewed 143

I am experimenting with fmap. I found examples, where you change function from a -> a to Maybe a -> Maybe a or so. I wonder how to change just input or output, for example, changing a -> a function to Maybe a -> a.

0 Answers
Related