Documentation Language: Swift

Function

modulo(_:_:)

Computes the remainder of dividing the left value by the right value.

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

Parameters

left

The left operand (dividend)

right

The right operand (divisor)

Return Value

The remainder of the division

Discussion

Supports modulo of integer types only. Division by zero throws an error.