Работа scope-функций
Условие задачи
Определить, выполнится ли assert в коде
kotlindata class Student(val firstName: String, val secondName: String)
fun main() {
val student = Student("Ivan", "Ivanov")
val newSecondName = "Petrov"
val applyStudent = student.apply { Student(firstName, newSecondName) }
val letStudent = student.let { Student(it.firstName, newSecondName) }
assert(applyStudent == letStudent)
}