Avatar
swiftbot BOT 6/8/2018 4:34 AM
Author icon
koher
let a: Range<Int> = 1..<10 print(a.map { $0 * 2 })
Version:
swift-4.1.1-RELEASE
Output:
Error:
/usercode/main.swift:2:7: error: value of type 'Range<Int>' has no member 'map' print(a.map { $0 * 2 }) ^ ~~~