“Swift Nested Tuple” Kode Jawaban

Swift Nested Tuple

var alphabets = ("A", "B", "C", ("a", "b", "c"))
SAMER SAEID

Swift Nested Tuple

var alphabets = ("A", "B", "C", ("a", "b", "c"))

// access first element
print(alphabets.0)   // prints "A"

// access the third element
print(alphabets.3)

// access nested tuple
print(alphabets.3.0)  // prints "a"
SAMER SAEID

Jawaban yang mirip dengan “Swift Nested Tuple”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya