Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created August 6, 2013 10:46
Show Gist options
  • Save hhariri/6163504 to your computer and use it in GitHub Desktop.
Save hhariri/6163504 to your computer and use it in GitHub Desktop.
fun takeExtension(func: (Customer.() -> Unit)) {
}
fun takeAFunc(func: (String) -> Unit) {
}
fun theFunc(input: String) {
}
fun Customer.theExtension() {
}
fun useAFunc() {
takeAFunc(::theFunc)
takeExtension((::theExtension))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment