Union Types

by James Phillips

A union type is something which can be realised as one of many (usually two) types. Either is an example in scala — Either can be Left[A] or Right[B]— a value of either type can be used in a place where we ask for an Either[A,B].

AnyJunk
AnyJunk
AnyJunk Tech Stories
More information
Followers
75
Elsewhere