Skip to content

Instantly share code, notes, and snippets.

@wennergr
Last active March 21, 2018 15:29
Show Gist options
  • Save wennergr/9935b95be4937d98b0539ad222c234c9 to your computer and use it in GitHub Desktop.
Save wennergr/9935b95be4937d98b0539ad222c234c9 to your computer and use it in GitHub Desktop.
Applicative defintion
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