Skip to content

Instantly share code, notes, and snippets.

@vkostyukov
Created February 2, 2015 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkostyukov/87b6ff26143d0b30755e to your computer and use it in GitHub Desktop.
Save vkostyukov/87b6ff26143d0b30755e to your computer and use it in GitHub Desktop.
trait F[A] {
def apply(foo: Foo): X[A]
def map(fn: A => B): F[B]
def flatMap(fn: A => F[B]): F[B]
def fooMap(fn: A => X[B]): F[B] // how is this called? constMap?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment