Created
June 15, 2017 06:47
-
-
Save patryk-scalac-io/d2ae9571b1f21c5b3995c153660e57fe to your computer and use it in GitHub Desktop.
This file contains 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
// first create some Street value to play with | |
val street = Street("Abbey Road", 44) | |
street: Street = Street(Abbey Road,44) | |
// "focus" to street | |
nameLens.get(street) | |
// res0: String = Abbey Road | |
// set new street name | |
nameLens.set("Newton Street")(street) | |
// res2: Street = Street(Newton Street,44) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment