two parts as one
Both a first and second part, conveniently represented as a tuple.
Using this type instead of a tuple visually unifies it with all the other types such as List, Maybe, or Result.
List
Maybe
Result
This in my opinion reads a tad better, especially as a type argument:
List (Maybe ( String, Int ))
becomes:
List (Maybe (And String Int))
Change the first part based on its current value
Change the second part based on its current value
Both a first and second part, conveniently represented as a tuple.
Using this type instead of a tuple visually unifies it with all the other types such as
List,Maybe, orResult.This in my opinion reads a tad better, especially as a type argument:
becomes: