7 kyu
Functional Addition
1,242 of 18,768amrdraz
Description:
Create a function add(n)
/Add(n)
which returns a function that always adds n to any number
Note for Java: the return type and methods have not been provided to make it a bit more challenging.
...returnType addOne = Kata.add(1);
addOne.method(3) => 4
Functional Programming
Fundamentals
Similar Kata:
Stats:
Created | May 30, 2014 |
Published | May 30, 2014 |
Warriors Trained | 31882 |
Total Skips | 2853 |
Total Code Submissions | 39345 |
Total Times Completed | 18768 |
JavaScript Completions | 9558 |
CoffeeScript Completions | 230 |
Python Completions | 4675 |
Haskell Completions | 651 |
F# Completions | 230 |
Swift Completions | 1393 |
C# Completions | 492 |
Java Completions | 1242 |
Go Completions | 1184 |
Elixir Completions | 67 |
OCaml Completions | 23 |
Total Stars | 240 |
% of votes with a positive feedback rating | 86% of 1726 |
Total "Very Satisfied" Votes | 1344 |
Total "Somewhat Satisfied" Votes | 291 |
Total "Not Satisfied" Votes | 91 |