// printing an Int array: // MARK: - First method let res = Array.map { String($0) } print(res.joinWithSeparator(" ")) //MARK: - Second method _ = leftShift(x, times: 4).map { print("\($0) ", terminator: "") }