Currying: Difference between revisions
Content added Content deleted
(added Mathematica imkplementation) |
|||
Line 262: | Line 262: | ||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |
||
Currying can be implemented by nesting the <code>Function</code> |
Currying can be implemented by nesting the <code>Function</code> function. The following method curries the <code>Plus</code> function. |
||
In[1]:= plusFC = Function[{x},Function[{y},Plus[x,y]]]; |
In[1]:= plusFC = Function[{x},Function[{y},Plus[x,y]]]; |