You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 5, 2022. It is now read-only.
moduleEmailAddress =type_T= EmailAddress ofstring// create with continuationletcreateWithCont success failure (s:string)=if System.Text.RegularExpressions.Regex.IsMatch(s,@"^\S+@\S+\.\S+$")then success (EmailAddress s)else failure "Email address must contain an @ sign"// create directlyletcreate s =letsuccess e = Some e
letfailure _ = None
createWithCont success failure s
// unwrap with continuationletapply f (EmailAddress e)= f e
// unwrap directlyletvalue e = apply id e