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

Add List.all/any with not on list with (not absorbing) simplifications #261

Closed lue-bird closed 9 months ago

lue-bird commented 9 months ago

as suggested in https://github.com/jfmengels/elm-review-simplify/pull/260#discussion_r1349517443

List.all not [ a, True, b ]
--> False

List.any not [ a, False, b ]
--> True

Bonus: Improved error for any/ all identity [ .. absorbing .. ]