Union Fallthrough?
I'm transforming some input using morphs like so:
And creating a union type like this, where
I expected
Which makes sense if the union is unordered.
Is there a way to make this union ordered? If not, is there a more fluent way to do this than wrapping it in a function?
And creating a union type like this, where
otherUnit.unit is "string": I expected
otherUnit to catch non-matching values, but I'm getting this error:Which makes sense if the union is unordered.
Is there a way to make this union ordered? If not, is there a more fluent way to do this than wrapping it in a function?