Skip to content

subtract

Summary

Functional equivalent of a - b.

Tip

This is an operator function.

Examples

Remove 2 from all numbers in the list:

1
2
map(subtract(2))([3,4,5]);
//=> [1,2,3]

Parameters

Name Type Description
a number
b number

Return

number

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