|
Has anyone done anything in ML that would resemble functions which take an element from the left side to the right side?I assume that you're referring to the fact that the B appears on the right-hand side of the first functional arrow in A->(B->C), but on the left-hand side in (AxB)->C. That's not the right point to focus on. Colloquially, it's a ``red herring''---an irrelevant point that leads your thinking astray. The B is on the left-hand side of the second arrow, and that turns out to be the important point. The encodings between these two types are quite simple. If you can think intuitively about the meanings of the type expressions, you should be able to cook up the encodings. In this case, the need to write type-correct expressions is a big help in leading you toward the solution. Mike O'D. |
to: