UnaryMinus

interface UnaryMinus<in Input, out Result> : KoneContext(source)

An operation context for the unary minus (negation) operator.

Type Parameters

Input

The type of the operand.

Result

The type of the result.

Functions

Link copied to clipboard
abstract operator fun Input.unaryMinus(): Result

Applies unary minus (negation) to this element.