Skip to content

Instantly share code, notes, and snippets.

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 akhilvijayan05/29d756792073a29bbc85112214d811ea to your computer and use it in GitHub Desktop.
Save akhilvijayan05/29d756792073a29bbc85112214d811ea to your computer and use it in GitHub Desktop.
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