swift convert Range to [Int]

前端 未结 8 599
感动是毒
感动是毒 2021-02-03 16:51

how to convert Range to Array

I tried:

let min = 50
let max = 100
let intArray:[Int] = (min...max)

get error Range is

8条回答
提交回复
热议问题