Skip to content

Instantly share code, notes, and snippets.

@Felipe00
Created April 8, 2018 04:30
Show Gist options
  • Save Felipe00/44be146ad837f045fef0a477036f9d4c to your computer and use it in GitHub Desktop.
Save Felipe00/44be146ad837f045fef0a477036f9d4c to your computer and use it in GitHub Desktop.
Lambda com kotlin ~
class Lambda {
fun t1(p: Int, lambda: (l: String) -> String) {
lambda(p.toString())
}
fun t2(p: Int): Long {
return 1L
}
fun t3(p3: Int) {
t1(1) { t2(it.toInt()).toString() }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment