Closed lue-bird closed 1 year ago
Tuple.first (Tuple.mapSecond changeFirst tuple) --> Tuple.first tuple Tuple.first (Tuple.mapBoth changeFirst changeSecond tuple) --> Tuple.first (Tuple.mapFirst changeFirst tuple) Tuple.second (Tuple.mapFirst changeSecond tuple) --> Tuple.second tuple Tuple.second (Tuple.mapBoth changeFirst changeSecond tuple) --> Tuple.second (Tuple.mapSecond changeSecond tuple)
including composition checks.
Note that this PR doesn't include e.g.
Tuple.second (Tuple.mapSecond changeSecond tuple) --> changeSecond (Tuple.first tuple)
as I'm still a bit unsure how to fix it.
The branch can be tried out by running:
elm-review --template jfmengels/elm-review-simplify/preview
including composition checks.
Note that this PR doesn't include e.g.
as I'm still a bit unsure how to fix it.