Int.fromStringWithRadix (parseInt) missing
Closed this issue · 3 comments
bloodyowl commented
You have Float.parseIntWithRadix
for that. The rationale behind putting it there is that it might return NaN
which belongs to floats.
Minnozz commented
I see Int.fromString
returns an option<int>
; would that be an option for Int.fromStringWithRadix
?
bloodyowl commented
I guess having a slight runtime on this wouldn't hurt given how often people can use it. Would you be able to send a PR?