Skip to content

Commit

Permalink
Merge pull request MostlyAdequate#393 from ptrfrncsmrph/patch-4
Browse files Browse the repository at this point in the history
Punctuation nitpicking ch04.md
  • Loading branch information
KtorZ authored Feb 21, 2018
2 parents 5eced8d + a7c96a5 commit 354a562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch04.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Giving a function fewer arguments than it expects is typically called *partial a
const allTheChildren = elements => map(elements, getChildren);
```

We typically don't define functions that work on arrays, because we can just call `map(getChildren)` inline. Same with `sort`, `filter`, and other higher order functions(Higher order function: A function that takes or returns a function).
We typically don't define functions that work on arrays, because we can just call `map(getChildren)` inline. Same with `sort`, `filter`, and other higher order functions (a *higher order function* is a function that takes or returns a function).

When we spoke about *pure functions*, we said they take 1 input to 1 output. Currying does exactly this: each single argument returns a new function expecting the remaining arguments. That, old sport, is 1 input to 1 output.

Expand Down

0 comments on commit 354a562

Please sign in to comment.