Photo by James Harrison / Unsplash

ForEach

Swift Feb 19, 2022

‌Swift dilinde For döngüsü ve For each kullanıma örnek bir kod bloğu


import Foundation

// forEach
// doesn't return anything

// For in loop

for elementOfArray in anyArrays {
    print(elementOfArray)
}

// For each

anyArray.forEach { elementOfArray in
    print(elementOfArray)
}
For Each & For Loop

Tags

Furkan Ozoglu

iOS Developer & Geomatics Engineer