Tagged union - Wikipedia, the free encyclopedia
In computer science, a tagged union, also called a variant, variant record, discriminated union, disjoint union, or sum type, is a data structure used to hold a value that could take on several different, but fixed types. Only one of the types can be in u...