kotlindocumentationinterpretation

How can I read Kotlin documentation


I am beginer with Kotlin, I am readig the official Documentation

My problem is that not sure how can I interpretate the documentation, by ex:

inline fun <T, R> T.let(block: (T) -> R): R

How should read this?


Solution

  • What you have linked here is an api reference in the official documentation.I guess you are having troubles understanding the syntax of Generics here.

    1. Try going through the Generics section first.
    2. If you still don't understand it maybe you should go through the Getting Started section once again and get comfortable with the basic syntax of functions, inline functions, lambdas, generics etc.