discriminated union

Computing Dictionary

discriminated union definition

The discriminated union of two sets A and B is
A + B = (inA, a) | a in A U (inB, b)| b in B
where inA and inB are arbitrary tags which specify which summand an element originates from.
A type (especially an algebraic data type) might be described as a discriminated union if it is a sum type whose objects consist of a tag to say which part of the union they belong to and a value of the corresponding type.
The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Explore Dictionary.com
Previous Definition: discriminate
Next Definition: discriminating
More from Thesaurus.com
Synonyms and Antonyms for discriminated union
More from Reference.com
Search for articles containing discriminated union
Dictionary.com Word FAQs

Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.

Copyright © 2014 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature