Functions

The following functions are available globally.

  • Creates a constant negate operation to negate an integral value.

    Declaration

    Swift

    public prefix func -(lhs: Constant<Signed>) -> Constant<Signed>

    Parameters

    lhs

    The operand to negate.

    Return Value

    A constant value representing the negation of the given constant.

  • Creates a constant negate operation to negate a floating value.

    Declaration

    Swift

    public prefix func -(lhs: Constant<Floating>) -> Constant<Floating>

    Parameters

    lhs

    The operand to negate.

    Return Value

    A constant value representing the negation of the given constant.