Anonymous user
Currying: Difference between revisions
→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(Added Kotlin) |
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
||
Line 863:
=={{header|Kotlin}}==
<lang scala>// version 1.1.
fun curriedAdd(x: Int) = { y: Int -> x + y }
|