This post is a pastiche of https://aphyr.com/posts/342-typing-the-technical-interview
This post translates one of them from Haskell to typescript (very well IMO).
This post is a pastiche of https://aphyr.com/posts/342-typing-the-technical-interview