Hi,
Inspired by a tweet about faster List.map for ocaml, I started experimenting and it turns out that writing implementations for `map` and `foldr` in pure Elm - which outperform both the current implementation as well as Robin's 0.19 implementation - is possible in a stack-safe manner.
I've asked a few people for feedback in private, but at this point I feel confident enough about the results to ask the wider community for feedback. So please, check it out, see if you can find issues with the implementation or the theory.
Would there be any interest in a PR to implement this in elm-lang/core?
Feel free to contact me on Slack to talk things through.
Kind regards,
Ilias