Created
May 5, 2019 17:58
-
-
Save akhilvijayan05/29d756792073a29bbc85112214d811ea 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
import cats.syntax.either._ | |
val eitherRightValue: Either[Boolean, Int] = 35.asRight[Boolean] | |
val eitherLeftValue: Either[Int, Boolean] = 35.asLeft[Boolean] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment