Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created November 11, 2018 11:26
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 ozcanzaferayan/6233cf1ed6fce6fb326a6a4657368cb8 to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/6233cf1ed6fce6fb326a6a4657368cb8 to your computer and use it in GitHub Desktop.
Kotlin Nedir: Kotlin'de fonksiyon tipi oluşturma ve çağırma
fun main(args: Array<String>) {
// SAM kullanmadan inline bir şekilde fonksiyon tipi oluşturulabiliyor
val helloWorld = { x: String, y: String -> x + y }
print(helloWorld("Hello", " World")) // Çıktı: Hello World
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment