Skip to content

Instantly share code, notes, and snippets.

@duck8823
Created April 15, 2017 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duck8823/e9a98a5386e5f5b983f5d272e0978d12 to your computer and use it in GitHub Desktop.
Save duck8823/e9a98a5386e5f5b983f5d272e0978d12 to your computer and use it in GitHub Desktop.
kotlin でふにゃふにゃ
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