Say I have the following single case discriminated union:
type OrderId = OrderId of string
At some point I need the actual string. The way I've found for extracting it is:
let id = match orderId with OrderId x -> x
Is there a more concise way of doing this?
I understand that my use is a special case and the match makes sense in order to make sure you've covered the possibilities, just wondering if there's a way of doing something like:
let OrderId id = orderId