Array To Int Swift

[Solved] Array To Int Swift | Swift - Code Explorer | yomemimo.com
Question : how to array int in int swift

Answered by : giorgi-samkharadze

let myArray = [1,5,2]
var myString = ""
_ = myArray.map{ myString = myString + "\($0)" }
let myInt = Int(myString)

Source : https://stackoverflow.com/questions/42122938/convert-int-array-into-an-integer-swift | Last Update : Mon, 05 Sep 22

Answers related to array to int swift

Code Explorer Popular Question For Swift