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 simplifications for List.intersperse on a singleton list #156

Closed lue-bird closed 1 year ago

lue-bird commented 1 year ago

Implements #142 without the last fix.

List.intersperse s [ a ]
--> [ a ]

-- not shown in the summary for example
List.intersperse a << List.singleton
--> List.singleton