-
-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Not sure if its just me, but I tried to build 2 of my apps using this lib in Xcode 16 beta and they both fail because of
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
extension CTMultiDataSetProtocol where Self.DataSet.DataPoint: CTStandardDataPointProtocol {
public func maxValue() -> Double {
self.dataSets.compactMap {
$0.dataPoints
.map(\.value)
.max()
}
.max() ?? 0
}
public func minValue() -> Double {
self.dataSets.compactMap {
$0.dataPoints
.map(\.value)
.min()
}
.min() ?? 0
}
public func average() -> Double {
self.dataSets
.compactMap {
$0.dataPoints
.map(\.value)
.reduce(0, +)
.divide(by: Double($0.dataPoints.count))
}
.reduce(0, +)
.divide(by: Double(self.dataSets.count))
}
}
on this line:
self.dataSets
flbaue, jaclynpgh and billylongta
Metadata
Metadata
Assignees
Labels
No labels