elmcraft / core-extra

Utility functions for an improved experience with elm/core
https://package.elm-lang.org/packages/elmcraft/core-extra/latest/
Other
23 stars 11 forks source link

Minor cleanup on Tuple.Extra #24

Closed gampleman closed 1 year ago

gampleman commented 1 year ago

Biggest change here is just removing the type alias in the type signatures.

I think it's fine to provide the type alias, but its not really idiomatic Elm, so the rest of the library need not use it.

Otherwise converting most examples to doctests, and adding a benchmark about (a, b) vs Tuple.pair a b, which is inconclusive:

Chrome:

Screenshot 2023-09-13 at 11 52 27

Safari:

Screenshot 2023-09-13 at 11 52 32