public/subjects/currify
xpetit def316d0f3
Reformat markdown (with prettier)
2021-04-27 21:04:54 +02:00
..
README.md Reformat markdown (with prettier) 2021-04-27 21:04:54 +02:00

README.md

Currify

Instructions

Create the function currify that will curry any functions put as argument.

example:

const mult2 = (el1, el2) => el1 * el2
console.log(mult2(2, 2)) // result expected 4

const mult2Curried = currify(mult2)

console.log(mult2Curried(2)(2)) // result expected 4
// (same result, with a function that has technically only one argument)

Notions