Created
April 8, 2018 04:30
-
-
Save Felipe00/44be146ad837f045fef0a477036f9d4c to your computer and use it in GitHub Desktop.
Lambda com kotlin ~
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
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