Last active
October 23, 2019 19:57
-
-
Save volgar1x/5cd4eff31e1c4e6ef904275699c2b6c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctx.upstream().with { | |
post(a) | |
post(b) | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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