Skip to content

Instantly share code, notes, and snippets.

@vlastachu
Created September 22, 2016 11:26
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 vlastachu/33eb413e4102b98a15e3ec5c72a58af3 to your computer and use it in GitHub Desktop.
Save vlastachu/33eb413e4102b98a15e3ec5c72a58af3 to your computer and use it in GitHub Desktop.
can't do anything with this
enum Either<A,B> {
case left(A)
case right(B)
}
func |<A,B>(left: A.Type, right: B.Type) -> Either<A, B>.Type {
return Either<A, B>.self
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment