Describe the problem
According to the codelab 6, it reads "The let() function is similar to apply(), but it returns a copy of the object with the changes." which is not true. According to the official document, let() scope function returns a lambda result which is the last expression of the lambda not a copy of the object.
The official documentation for let reads, "The context object is available as an argument (it). The return value is the lambda result."
In which step of the codelab can this issue be found?
Step number 4.3
Steps to reproduce?
What are the steps to reproduce the problem?
Versions
What version of IntelliJ IDEA are you using?
Additional information
Add any other context about the problem here.
Describe the problem According to the codelab 6, it reads "The let() function is similar to apply(), but it returns a copy of the object with the changes." which is not true. According to the official document, let() scope function returns a lambda result which is the last expression of the lambda not a copy of the object. The official documentation for let reads, "The context object is available as an argument (it). The return value is the lambda result."
In which step of the codelab can this issue be found? Step number 4.3
Steps to reproduce? What are the steps to reproduce the problem?
Versions What version of IntelliJ IDEA are you using?
Additional information Add any other context about the problem here.
codelab: kotlin-bootcamp