Skip to content

USstates1

Giuseppe Cannella edited this page Feb 19, 2020 · 2 revisions
Type name example
USstates1 Connecticut
import com.github.gekomad.regexcollection.USstates1                             
import com.github.gekomad.regexcollection.Validate.validate                     
                                                                                
assert(validate[USstates1]("Italy") == None)                                    
assert(validate[USstates1]("FL") == None)                                       
assert(validate[USstates1]("Connecticut") == Some("Connecticut"))               
assert(validate[USstates1]("North Carolina") == Some("North Carolina"))                                                             
Clone this wiki locally