Skip to main content
Adds two numerical inputs and returns the sum as a float.

Validation

Both inputs must be numerical (integer or float). Values are matched per dated property by valid_from and id, so y may carry a different set of dated properties than x as long as the keys line up. Any non-numerical input raises an error.

Nil handling

A nil value on either side is treated as zero.

List behaviour

When the value of a dated property on x is a list, the matching value on y must be either a single number or a list of the same length. Same-length lists are added element-wise; a single number is added to every element. Any other shape raises an error.

Ports