> > let state_of_value v = match v with > | `Red | `Blue | `Green -> ????? > | `Missing -> Missing let state_of_value v = match v with | (`Red | `Blue | `Green) as c -> Color (color_index c) | `Missing -> Missing