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