Skip to content

Instantly share code, notes, and snippets.

@himanshuPH
Forked from cbeyls/KotlinFunctions.md
Created August 7, 2017 18:06
Show Gist options
  • Select an option

  • Save himanshuPH/aee71e200d5d38f339ef83be96649bef to your computer and use it in GitHub Desktop.

Select an option

Save himanshuPH/aee71e200d5d38f339ef83be96649bef to your computer and use it in GitHub Desktop.
Comparison of Kotlin functions: also, apply, let, run, with
Function Function type Target passed as Returns
also Extension it Target
apply Extension this Target
let Extension it Block return value
run Extension this Block return value
with Regular this Block return value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment