From d649063d33f86dadcff9708052cd04b0b50a999a Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 17 Aug 2024 11:48:47 +0100 Subject: [PATCH] :recycle: Remove type annotations from lambdas. --- src/gleam_community/maths/arithmetics.gleam | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gleam_community/maths/arithmetics.gleam b/src/gleam_community/maths/arithmetics.gleam index 540ba0d..ee27306 100644 --- a/src/gleam_community/maths/arithmetics.gleam +++ b/src/gleam_community/maths/arithmetics.gleam @@ -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 }) } } }