mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-08 19:46:41 +00:00
Add an another example for lift (#79)
I found it quite confusing at first sight. Perhaps it would be useful for futur readers to have a second example.
This commit is contained in:
parent
b0b210248c
commit
102809f9e2
1 changed files with 1 additions and 0 deletions
|
|
@ -327,6 +327,7 @@ Unlike map lift can be used to combine values from multiple arrays:
|
|||
|
||||
```js
|
||||
lift((a, b) => a * b)([1, 2], [3]); // [3, 6]
|
||||
lift((a, b) => a * b)([1, 2], [3, 4]); // [3, 6, 4, 8]
|
||||
```
|
||||
|
||||
## Referential Transparency
|
||||
|
|
|
|||
Loading…
Reference in a new issue