Currying: Difference between revisions
m
→{{header|J}}
(Add R version) |
m (→{{header|J}}) |
||
Line 863:
'''Note''': The final example (<tt>someParabola</tt>) shows the single currying primitive (&) combined with J's array oriented nature, permits partial application of a function of any number of arguments.
'''Note''': J's adverbs and conjunctions (such as <code>&</code>) will curry themselves when necessary. Thus, for example:
<lang J> with2=: &2
+with2 3
5</lang>
=={{header|Java}}==
|