Created
February 3, 2020 09:33
-
-
Save dnaumenko/98abb8ff38033bce8cff7d95123058b9 to your computer and use it in GitHub Desktop.
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 Env[Ctx, +A] { | |
def map[B](f: A => B): Env[Ctx, B] | |
def flatMap[B](f: A => Env[Ctx, B]): Env[Ctx, B] | |
def void: Env[Ctx, Unit] = map(_ => ()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment