Anonymous user
Currying: Difference between revisions
→{{header|Rust}}
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
|||
Line 1,158:
This is a simple currying function written in [[Rust]]:
<lang rust>#![feature(
fn add_n<'a>(n : i32) ->
}
Line 1,167:
println!("The answer to life is {}.", adder(2));
}</lang>
=={{header|Scala}}==
|