trait
UnionTypes extends AnyRef
Type Members
-
type
![A] = (A) ⇒ Nothing
-
type
!![A] = (![A]) ⇒ Nothing
-
type
Contains[S, T <: Disj] = <:<[!![S], or[T]]
-
-
-
sealed
trait
Union[T] extends AnyRef
-
type
or[T <: Disj] = (or.T.D) ⇒ Nothing
-
type
t[T] = AnyRef { type t[S] = UnionTypes.this.Disj{type D = T => Nothing with S => Nothing} }
-
type
∈[S, T <: Disj] = <:<[!![S], or[T]]
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
implicit
def
any2Converter[S](s: S): Converter[S]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Union types using Curry-Howard isomorphism
(Since version 7.1) unboxed union types are deprecated
http://en.wikipedia.org/wiki/Curry-Howard_correspondence
http://www.chuusai.com/2011/06/09/scala-union-types-curry-howard/