Argument type 'Range<Int>' does not conform to expected type 'Sequence' Swift3 Argument type 'Range<Int>' does not conform to expected type 'Sequence' Swift3 arrays arrays

Argument type 'Range<Int>' does not conform to expected type 'Sequence' Swift3


Use the lowerBoundand upperBound property of range to create sequence for Array of [Int].

var r = [Int](range.lowerBound..<range.upperBound)


I would suggest you use CountableRange<Int>.