Plus

inline fun <Left, Right, Result> Plus(crossinline block: (left: Left, right: Right) -> Result): Plus<Left, Right, Result>(source)

Creates a Plus instance from a lambda.

Return

A new Plus instance.

Parameters

block

The function implementing addition.

Type Parameters

Left

The type of the left operand.

Right

The type of the right operand.

Result

The type of the result.