rescript-lang / rescript-core

A drop-in standard library for ReScript. Intended to be familiar for JavaScript developers, easy to use, and be rich enough (without being bloated) so that you don't need to reach for anything else for typical ReScript development.
MIT License
163 stars 30 forks source link

add `Char` module #229

Open aspeddro opened 6 months ago

aspeddro commented 6 months ago

Perhaps add chrOpt, return option<chr>, @zth, @fhammerschmidt?

TODO:

Close #228

fhammerschmidt commented 5 months ago

Yes, a chrOpt that checks if a given int is in the valid char range and only then returns a Some(char) is missing currently, imo.