jfmengels / elm-review-simplify

Provides elm-review rules to simplify your Elm code
https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/latest/
BSD 3-Clause "New" or "Revised" License
20 stars 9 forks source link

List.sum on list with 0, List.product on list with 1 #256

Closed lue-bird closed 9 months ago

lue-bird commented 9 months ago

Two simplifications from https://github.com/jfmengels/elm-review-simplify/issues/127

List.sum [ a, 0, b ]
--> List.sum [ a, b ]

List.product [ a, 1, b ]
--> List.product [ a, b ]