In Swift, is there a way to to assign multiple variables to elements of array?

前端 未结 0 1681
天涯浪人
天涯浪人 2020-11-30 08:07

I have a long array like this: let array = [1, 2, 3] and I want to assign the values of all elements to different Variables for example: var a, b, c:Int [a, b, c] = [1, 2, 3

相关标签:
回答
  • 消灭零回复
提交回复
热议问题