How to convert a Swift array into a tuple in single line? Is it possible to do using map?
let arr = [1, 2]
let (a, b) = tuple(arr) #tuple method doesn't exits, how can it be achieved
How to convert a Swift array into a tuple in single line? Is it possible to do using map?
let arr = [1, 2]
let (a, b) = tuple(arr) #tuple method doesn't exits, how can it be achieved