Empty string or number
I have this type that I want to reuse:
I want to reuse it so if the string is empty, leave it as is, otherwise parse it as the
But when I do this, it complains:
This works though, so it's no big deal but just curious if it's possible to combine these above?
I want to reuse it so if the string is empty, leave it as is, otherwise parse it as the
number type.But when I do this, it complains:
This works though, so it's no big deal but just curious if it's possible to combine these above?