Jan Stoltman
06/16/2019, 4:09 PMlet http200Status = (statusCode: 200, description: "OK")
print("The status code is \(http200Status.statusCode)")
// Prints "The status code is 200"
print("The status message is \(http200Status.description)")
// Prints "The status message is OK"
What I'm impressed by is that values can be retrieved from a tuple by their names. Is there something similar in Kotlin, other than a normal data class with two fields?