summaryrefslogtreecommitdiffhomepage
path: root/tr-tr
diff options
context:
space:
mode:
authorbaha <bahacan19@gmail.com>2017-08-10 14:38:03 +0300
committerbaha <bahacan19@gmail.com>2017-08-10 14:38:03 +0300
commit8b3b05a48cd0a49cbf009430ab965b26d92040d0 (patch)
treed86e4fa5f699b86b2c6bfb22d91bc298033c1d7c /tr-tr
parentef1cf7d71ecb3f9879397c0893bb8803b427240f (diff)
[kotlin/tr] some cleanup
Diffstat (limited to 'tr-tr')
-rw-r--r--tr-tr/kotlin-tr.html.markdown8
1 files changed, 5 insertions, 3 deletions
diff --git a/tr-tr/kotlin-tr.html.markdown b/tr-tr/kotlin-tr.html.markdown
index e549ef8e..043cf31f 100644
--- a/tr-tr/kotlin-tr.html.markdown
+++ b/tr-tr/kotlin-tr.html.markdown
@@ -215,7 +215,6 @@ fun helloWorld(val name : String) {
println("$key -> $value")
}
- // The "with" function is similar to the JavaScript "with" statement.
// 'with' metodu ile bir objeye bir lamda metodu uygulayabiliriz.
data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
val fooMutableData = MutableDataClassExample(7, 4, 9)
@@ -379,8 +378,7 @@ fun helloWorld(val name : String) {
}
println("Merhaba, dünya!".remove('a')) // => Merhb, düny!
- println(EnumExample.A) // => A
- println(ObjectExample.hello()) // => Merhaba
+
//Biraz detaylı Kotlin
@@ -438,6 +436,10 @@ fun helloWorld(val name : String) {
myVetoableName = "Baha" //<isim yok> -> Baha
myVetoableName = "C" //Tek harfli isim kabul etmiyoruz!
println(myVetoableName) //Baha
+
+
+ //singleton değişkene ulaşmak:
+ println(ObjectExample.hello()) // => Merhaba
}
// Enum class lar Java'daki enum lara benzerdir.