Last active
March 21, 2018 15:29
-
-
Save wennergr/9935b95be4937d98b0539ad222c234c9 to your computer and use it in GitHub Desktop.
Applicative defintion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Applicative[F[_]] extends Functor[F] { | |
def pure[A](x: A): F[A] | |
def ap[A, B](ff: F[A => B])(fa: F[A]): F[B] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment