Skip to content

Instantly share code, notes, and snippets.

@volgar1x
Last active October 23, 2019 19:57
Show Gist options
  • Save volgar1x/5cd4eff31e1c4e6ef904275699c2b6c7 to your computer and use it in GitHub Desktop.
Save volgar1x/5cd4eff31e1c4e6ef904275699c2b6c7 to your computer and use it in GitHub Desktop.
ctx.upstream().with {
post(a)
post(b)
...
}
fun <T> T.with(action: T.() => Unit) {
action(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment