add
Summary
Functional equivalent of a + b.
Tip
This is an operator function.
Examples
Add 42 to all numbers.
1 2
map(add(42))([0,1,2]);
//=> [42,43,44]
Parameters
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
Return
number
Summary
Functional equivalent of a + b.
Tip
This is an operator function.
Add 42 to all numbers.
1 2
map(add(42))([0,1,2]);
//=> [42,43,44]
| Name | Type | Description |
|---|---|---|
| a | number |
|
| b | number |
number