google-developer-training / kotlin-bootcamp

Report issues with the Kotlin Bootcamp for Programmers codelab
7 stars 2 forks source link

Kotlin Bootcamp issue: let() in Functional Manipulation #106

Open Totremont opened 3 years ago

Totremont commented 3 years ago

Describe the problem The codelab says that -quote-: "The let() function is similar to apply(), but it returns a copy of the object with the changes. This can be useful for chaining manipulations together." This is not true, the let() function returns the RESULT of the supplied lambda expression, not a copy of the object. Source: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/let.html

In which step of the codelab can this issue be found? Kotlin Bootcamp for Programmers 6: Functional manipulation. Step 5

Steps to reproduce? Step 5

Additional information This is the mar. 29, 2021 version of the codelab

codelab: kotlin-bootcamp