Last active
August 13, 2016 10:17
-
-
Save travisdachi/4cabf65944a5292da772730eb6cef0f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 fetchSomething(someId: String, callback: (Something) -> Unit) { | |
val something = ... | |
callback(something) | |
} | |
fetchSomething("anotherId", { something -> | |
something.doSomething() | |
}) | |
fetchSomething("someOtherId") { | |
it.doSomething() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment