Skip to content

Instantly share code, notes, and snippets.

@shruti-basil-hs
Created December 22, 2017 17:46
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/693eeefe41d0bc66210326b22d6e30fd to your computer and use it in GitHub Desktop.
Save shruti-basil-hs/693eeefe41d0bc66210326b22d6e30fd to your computer and use it in GitHub Desktop.
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment