Currying: Difference between revisions

357 bytes added ,  5 years ago
No edit summary
Line 12:
 
=={{header|Aime}}==
Curry a function printing an integer, on a given number of characters, adding commas every given number of digits, with a given number of digits, in a given base:
<lang aime></lang>ri(list l)
{
l[0] = apply.apply(l[0]);
}
curry(object o)
{
(o.__count - 1).times(ri, list(o));
}
main(void)
{
o_wbfxinteger.curry()(16)(3)(12)(16)(1 << 30);
0;
}
</lang>
{{out}}
<pre> 000,040,000,000</pre>
 
=={{header|ALGOL 68}}==
Anonymous user