Created
May 16, 2020 20:13
-
-
Save lu4nm3/a9024d97cb5da2b64c98f7451b193ed9 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
scala> val emailAddress = EmailAddress("[email protected]") | |
emailAddress: Either[String,EmailAddress] = Right(EmailAddress([email protected])) | |
scala> emailAddress.map(_.copy(emailAddress = "@example.com")) | |
res0: scala.util.Either[String,EmailAddress] = Right(EmailAddress(@example.com)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment