...通常是某一个枚举(enum)类型,像这样包含 一个联合和一个标签的数据结构有时候也被称为 可区分的联合 ( discriminated union )。 在下面的C例子中,shape_t类型是一个 可区分的联合 ,被用来表示一个矩形或者一个圆。
2
?可辨识联合
演示 F# 中可辨识联合(discriminated union)的功能和实用性。
3
?可区分联合
...回值上,例如一个百分比输入控件可能会返回0到100之间的浮点数值,或者一个组合框可能会生成 可区分联合 ( discriminated union )中的某种类型(可能有也可能没有标记值)。你可以用许多方式将多个较小的formelet组合成更大的formlet。
4
?鉴别联集
... 简并闭联集 degenerate continuum 鉴别联集discriminated union 关联集合类型 associated set type ...
双语例句
1
"We have been discriminated against for 20 years," the doctor said, referring to the ethnic riots that took place near Osh in 1990, just after the breakup of the Soviet Union.