Currying: Difference between revisions

no edit summary
(→‎{{header|TXR}}: Currying is not partial application. Also fix, cl-op link. Google Code is long dead.)
No edit summary
Line 1,020:
2 + 3 = 5
</pre>
 
=={{header|Lambdatalk}}==
Called with a number of values lesser than the number of arguments a function memorizes the given values and returns a function waiting for the missing ones.
<lang scheme>
1) just define function as usual:
'{def power {lambda {:a :b} {pow :a :b}}}
-> {def power {lambda {:a :b} {pow :a :b}}}
2) and use it:
'{power 2 8}
-> 256
'{S.map {power 2} {S.serie 1 10}}
-> 2 4 8 16 32 64 128 256 512 1024
</lang>
 
=={{header|Latitude}}==