Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Created September 21, 2014 18:06
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 jeremytregunna/941ebfa8fe9c503eb8ef to your computer and use it in GitHub Desktop.
Save jeremytregunna/941ebfa8fe9c503eb8ef to your computer and use it in GitHub Desktop.
public enum Either<A, B> {
case Left(@autoclosure () -> A)
case Right(@autoclosure () -> B)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment