mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-10 20:46:51 +00:00
Merge pull request #63 from galopezb/patch-1
Typo in function composition section
This commit is contained in:
commit
4e69ee2adf
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ add2(10) // 12
|
||||||
|
|
||||||
## Function Composition
|
## Function Composition
|
||||||
|
|
||||||
The act of putting two functions together to form a third function where the the output of one function is the input of the other.
|
The act of putting two functions together to form a third function where the output of one function is the input of the other.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const compose = (f, g) => (a) => f(g(a)) // Definition
|
const compose = (f, g) => (a) => f(g(a)) // Definition
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue