Currying: Difference between revisions

Content added Content deleted
(Added Kotlin)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 863: Line 863:


=={{header|Kotlin}}==
=={{header|Kotlin}}==
<lang scala>// version 1.1.1
<lang scala>// version 1.1.2


fun curriedAdd(x: Int) = { y: Int -> x + y }
fun curriedAdd(x: Int) = { y: Int -> x + y }