Slide 134
Slide 134 text
͏
fun main(args: Array) {
val unregisteredUser = User(
id = 114514L,
name = "takuji31",
registered = false
)
val user = register(unregisteredUser)
print(user)
}
fun register(user: User): User {
// do something
return User(user.id, user.name, true)
}