DISCRIMINATED UNION
\dɪskɹˈɪmɪnˌe͡ɪtɪd jˈuːni͡ən], \dɪskɹˈɪmɪnˌeɪtɪd jˈuːniən], \d_ɪ_s_k_ɹ_ˈɪ_m_ɪ_n_ˌeɪ_t_ɪ_d j_ˈuː_n_iə_n]\
Sort: Oldest first
-
The discriminated union of two sets A and B isA + B = (inA, a) | a in A U (inB, b)| b in Bwhere inA and inB are arbitrary tags which specify whichsummand an element originates from.A type (especially an algebraic data type) might bedescribed as a discriminated union if it is a sum type whoseobjects consist of a tag to say which part of the union theybelong to and a value of the corresponding type.
By Denis Howe
Word of the day
SQ10,643
- A serotonin antagonist with limited antihistaminic, anticholinergic, and immunosuppressive activity.