Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Created June 5, 2020 02:31
Show Gist options
  • Save sagarpatel288/67e746626bedfa7becabf02a1c35b0dd to your computer and use it in GitHub Desktop.
Save sagarpatel288/67e746626bedfa7becabf02a1c35b0dd to your computer and use it in GitHub Desktop.
The definition of a scope function: let
public inline fun <T, R> T.let(block: (T) -> R): R {
/*...*/
return block(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment