Created
April 15, 2017 06:37
-
-
Save duck8823/e9a98a5386e5f5b983f5d272e0978d12 to your computer and use it in GitHub Desktop.
kotlin でふにゃふにゃ
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 main(args: Array<String>) { | |
exec(fun(a: String): String { | |
return "Hello $a" | |
}) | |
} | |
fun exec(callback: (String) -> String ) { | |
println(callback("world")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment