Skip to content

Instantly share code, notes, and snippets.

@shruti-basil-hs
Created December 22, 2017 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shruti-basil-hs/9bc40b7394a0c5ed078f148a04e9fcef to your computer and use it in GitHub Desktop.
Save shruti-basil-hs/9bc40b7394a0c5ed078f148a04e9fcef to your computer and use it in GitHub Desktop.
fun <T> T.apply(f: T.() -> Unit): T { f(); return this }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment