Skip to content

Latest commit

 

History

History

functional-addition

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Functional Addition

Create a function add(n) / Add(n) which returns a function that always adds n to any number

Note

Note for Java: the return type and methods have not been provided to make it a bit more challenging.

Example

var addOne = Add(1)
addOne(3) // 4

Link

Codewars