Skip to content

Instantly share code, notes, and snippets.

@loihd
Forked from cbeyls/KotlinFunctions.md
Created November 1, 2017 12:55
Show Gist options
  • Save loihd/30499b2a2a11fb56955a1fba41982e24 to your computer and use it in GitHub Desktop.
Save loihd/30499b2a2a11fb56955a1fba41982e24 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