mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-15 07:59:01 +00:00
♻️ Remove type annotations from lambdas.
This commit is contained in:
parent
00ad62800f
commit
d649063d33
1 changed files with 1 additions and 3 deletions
|
@ -343,9 +343,7 @@ pub fn float_sum(arr: List(Float), weights: option.Option(List(Float))) -> Float
|
|||
|> list.fold(0.0, fn(acc, a) { a +. acc })
|
||||
_, option.Some(warr) -> {
|
||||
list.zip(arr, warr)
|
||||
|> list.fold(0.0, fn(acc: Float, a) {
|
||||
pair.first(a) *. pair.second(a) +. acc
|
||||
})
|
||||
|> list.fold(0.0, fn(acc, a) { pair.first(a) *. pair.second(a) +. acc })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue