|
|
@ -13,7 +13,7 @@ from lodash. |
|
|
|
const square = nbr => nbr * nbr |
|
|
|
const square = nbr => nbr * nbr |
|
|
|
const add2Numbers = (nbr1, nbr2) => nbr1 + nbr2 |
|
|
|
const add2Numbers = (nbr1, nbr2) => nbr1 + nbr2 |
|
|
|
|
|
|
|
|
|
|
|
const flowedFunctions = flow([add2numbers, square]) |
|
|
|
const flowedFunctions = flow([add2Numbers, square]) |
|
|
|
flowedFunctions(2, 3) // -> 25 |
|
|
|
flowedFunctions(2, 3) // -> 25 |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|