Created
October 12, 2020 12:48
-
-
Save ch8n/7b58d40d5a9c2c6be3e95359aad6790b to your computer and use it in GitHub Desktop.
pair copy constructor
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
val pair = "2" to 1 | |
val updatedPair = pair.copy(first = "1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment