Created
May 16, 2020 20:14
-
-
Save lu4nm3/e85f921db3dce14937f7fc14c0451bfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class EmailAddress(emailAddress: String) { | |
def copy(emailAddress: String = emailAddress): Either[String, EmailAddress] = { | |
EmailAddress(emailAddress) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment