Discussion about this post

User's avatar
Eduard Levshteyn's avatar

Really great stuff.

Upon reading I found that the map function may be confusing. Based on the diagram you might think map is a function that takes an Array<Number> and turns it into an Array<String>. This is true in programming languages that provide a method called map on the functor type. But there is a method map and there is also a free function map that is unique to each functor. The free function map would take as input toString and have as output the function between Array<Number> to Array<String>.

Expand full comment
1 more comment...

No posts