traversing an array in swift code example Example: loop through array swift let names = ["a", "b", "c"] for name in names { print(name) }