how to convert Range to Array
I tried:
let min = 50 let max = 100 let intArray:[Int] = (min...max)
get error Range is
Range is
do:
let intArray = Array(min...max)
This should work because Array has an initializer taking a SequenceType and Range conforms to SequenceType.
Array
SequenceType
Range