Tuple Nedir? Nasıl Kullanılır?

Mehmet Anıl Kul
Sep 2, 2018 · 1 min read

Tuple tipleri ile birden fazla değeri grup olarak tanımlayabiliriz. Örneğe göz atıp daha net bir şekilde anlayalım.

Örnek:// Tuple’ımızı tanımlayalım
var ornekTuple = (boy: 180, kilo: 90)
// Şimdi boy değişkenini çağıralım.
ornekTuple.boy //180
// Anahtarları tekrar girmeden de tuple üzerinde değişiklik yapabiliriz.
ornekTuple(167, 58)
ornekTuple.1 //58
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade