diff options
| -rw-r--r-- | lec10/notes.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lec10/notes.md b/lec10/notes.md index e65dbe9..3a3cac6 100644 --- a/lec10/notes.md +++ b/lec10/notes.md @@ -48,7 +48,7 @@ Our applied version of `fmap` lets us apply functions to values in a Functor con Using `(<*>)` we can now implement `fmap2`, which is also available in the standard library as `liftA2`. The standard library also defines a synonym for `fmap`, `(<$>)`, available in `Control.Applicative`. As a result, `liftA2` is simply written as: - liftA2 :: Applicative f => (a -> b -> c -> f a -> f b -> f c + liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c liftA2 h fa fb = h <$> fa <*> fb We can write `liftA3` similarly, with the same operators: |