2 ms·
Can someone help me bridge the gap between this understanding of the definition of functor and the ocaml version? In ocaml, a functor is a module that takes an
by saosebastiao 12y ago
Can someone help me bridge the gap between this understanding of the definition of functor and the ocaml version?
In ocaml, a functor is a module that takes another module as a parameter. In this, a functor is a type that implements the map method. Is there something I'm missing that explains how both of them are functors?
- _Robbie 12y agoThe simple explanation is that the word functor is being used for two different concepts. I found this question on Stackoverflow. http://stackoverflow.com/questions/16353066/how-are-functors-in-haskell-and-ocaml-similar http://stackoverflow.com/questions/16353066/how-are-functors...