We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c0102 commit 7513bc0Copy full SHA for 7513bc0
Linear Regression/LinearRegression.playground/Contents.swift
@@ -34,7 +34,7 @@ func average(_ input: [Double]) -> Double {
34
}
35
36
func multiply(_ a: [Double], _ b: [Double]) -> [Double] {
37
- return zip(a,b).map { $0.0 * $0.1 }
+ return zip(a,b).map(*)
38
39
40
func linearRegression(_ xs: [Double], _ ys: [Double]) -> (Double) -> Double {
0 commit comments