Documentation Language: Swift

Function

subtract(_:_:)

Subtracts the right value from the left value.

func subtract(_ left: any EcoreValue, _ right: any EcoreValue) throws -> any EcoreValue

Parameters

left

The left operand (minuend)

right

The right operand (subtrahend)

Return Value

The difference of the operands

Discussion

Supports subtraction of numeric types with automatic type coercion.