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
19 stars 9 forks source link

Add Array.foldl/r simplifications #231

Closed lue-bird closed 1 year ago

lue-bird commented 1 year ago

Add Array.foldl and foldr simplifications listed in #174

-- The following simplifications for Array.foldl also work for Array.foldr
Array.foldl f initial Array.empty
--> initial

Array.foldl (\_ soFar -> soFar) initial array
--> initial
github-actions[bot] commented 1 year ago

The branch can be tried out by running:

elm-review --template jfmengels/elm-review-simplify/preview