Helper function that wraps String.toInt? but returns .none if the string contains ''. This prevents the undocumented behavior where String.toInt? allows '' characters.
Instances For
Helper function that wraps String.toNat? but returns .none if the string contains ''. This prevents the undocumented behavior where String.toNat? allows '' characters.