-
Notifications
You must be signed in to change notification settings - Fork 0
USstates
Giuseppe Cannella edited this page Feb 19, 2020
·
2 revisions
Type name | example |
---|---|
USstates | FL |
import com.github.gekomad.regexcollection.USstates
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[USstates]("Italy") == None)
assert(validate[USstates]("OO") == None)
assert(validate[USstates]("FL") == Some("FL"))
assert(validate[USstates]("CA") == Some("CA"))
assert(validate[USstates]("OH") == Some("OH"))