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 Random.uniform, Random.weighted #131

Closed lue-bird closed 1 year ago

lue-bird commented 1 year ago
Random.uniform a []
--> Random.constant a

Random.weighted ( weight, a ) []
--> Random.constant a

Random.weighted tuple []
--> Random.constant (Tuple.first tuple)

which are part of https://github.com/jfmengels/elm-review-simplify/issues/109