Question
Define an instance of the Applicative class for the type $(a->)$. If you are familiar with combinatory logic, you might recognise pure and $\langle\star\rangle$ for this type as being the well-known $K$ and $S$ combinators.
Step 1
To define an instance of the Applicative class for the type $(a \to)$, we need to provide implementations for the two required functions: `pure` and `(<*>)`. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD