Swift Array ve dictionary Genel anlatımım Kodlar İle(VIDEO TUTORIAL) LESSON-IV

in utopian-io •  7 years ago  (edited)

Selamlar , bugünkü dersimizde " Swift Array ve dictionary " Konularının genel kavramlarını ve kodlama şekillerini anlatmaya çalıştım . Bir kaç defa yeniden başlattığım videoyu sonunda tamamladım . Yavaş yavaş programlamaya geçerken bu kavramları tam olarak öğrenmekte yarar var arkadaşlar . Farkındaysanız videolarımız uzun olmakta ve anlamanız için elimden geleni yapmaktayım . Yorumlarınızı ve oylarınızı bekliyorum . İyi seyirler , iyi dersler .

Greetings, I tried to describe the general concepts and coding styles of the "Swift Array and dictionary" topics in our current lesson. I finished the video that I had restarted a few times at the end. It is useful to learn these concepts precisely as you go slowly to programming. If you are aware, our videos will be long and I will make a complete comeback for you. I expect your comments and votes. Good looking, good lessons.,

Projemizin Kodları
(Project Code)


import UIKit

**//Diziler ve Sözlük Yapısı (Array ve Dictionary)**

var str = [String]() **//Boş ve elemanları string olan bir dizi**

var tamsayi = [Int]() **//Boş ve elemanları integer olan bir dizi**

var OndalikliSayi = [Double]()

//**append -> diziye eleman ekler**

str.append("Swift")

str.append("3")

str.remove(at: 1)

str.removeAll()

str

**//Swift 4 ile geldi**

var kelime = ["kelime1","kelime3","kelime2"]

kelime.swapAt(1,2)

kelime

**//Tek taraflı sınır değeri koyma Swift 4**

var sehirler = ["Adana","Adıyaman","Bursa","Çanakkale","Denizli"]

let ilkSehirler = sehirler[..<2]

let sonSehirler = sehirler[2...]

sehirler.count **// Eleman sayısı bulunur**

**//Dictionary kelime:anlamı -> key:value**

var kullaniciBilgileri = ["Adı":"Kerim","Soyadı":"Çağlar","Meslek":"Yazılım Geliştirici"]

kullaniciBilgileri.count

kullaniciBilgileri.updateValue("Çağlar2", forKey: "Soyadı")

kullaniciBilgileri

**//Swift 4 ile geldi**

let yenidenDuzenleSehirler = ["Adana":"0","Adıyaman":"1","Bursa":"2","Çanakkale":"4", "Denizli":"5"]

let sonDurum = Dictionary(grouping:yenidenDuzenleSehirler.keys) {$0.first!}

let sayiyaGore = Dictionary(grouping:yenidenDuzenleSehirler.keys) {$0.count}

sonDurum

sayiyaGore

Videoma ingilizce çeviri yapabilirsiniz
English subtitles can be added to the video.

Kodlara github adresimden'de ulaşabilirsiniz
You can access the code file from my "Githup" account



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Giving out free votes to the little guys, I hope you appreciate.

Thanks you :) :) :) Good lucky

Congratulations @kerimcaglar! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Comment
Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @kerimcaglar I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x