mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
Format.
This commit is contained in:
parent
499b3e53e2
commit
9f254dd59d
1 changed files with 2 additions and 1 deletions
|
|
@ -137,9 +137,10 @@ let total1 = (numbers) => combine(add, 0, numbers);
|
|||
let total2 = combine(add, 0);
|
||||
```
|
||||
|
||||
`total1` lists and uses the parameter `numbers`, so it is not points-free. `total2` is written just by combining functions and values, making no mention of its arguments. It _is_ points-free.
|
||||
`total1` lists and uses the parameter `numbers`, so it is not points-free. `total2` is written just by combining functions and values, making no mention of its arguments. It __is__ points-free.
|
||||
|
||||
It is easy to recognize points-free function definitions; they are the ones that contain no '`function`' keywords and no fat arrows.
|
||||
|
||||
---
|
||||
|
||||
## Contracts
|
||||
|
|
|
|||
Loading…
Reference in a new issue