0

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
Rahul
  • 2,056
  • 1
  • 21
  • 37

0 Answers0