Skip to content

Instantly share code, notes, and snippets.

Created September 22, 2016 11:26
What would you like to do?
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