Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created October 12, 2020 12:48
Show Gist options
  • Save ch8n/7b58d40d5a9c2c6be3e95359aad6790b to your computer and use it in GitHub Desktop.
Save ch8n/7b58d40d5a9c2c6be3e95359aad6790b to your computer and use it in GitHub Desktop.
pair copy constructor
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