I found this in some open source code.
I am familiar with map(), but not the CGFloat.init(_:))
part.
The Swift code is as follows:
if let array = propertyListValue as? [Int], array.count == 3 || array.count == 4 {
let floats = array.map(CGFloat.init(_:))
}
Not sure what to look for in docs. I know what _ name : Type
means in a function declaration... but just confused by this use case.