Skip to content

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

AltStyle によって変換されたページ (->オリジナル) /