In Operators§
See primary documentation in context for prefix -.
multi prefix:<->(Any --> Numeric:D)
Negative numeric context operator.
Coerces the argument to Numeric
by calling the Numeric
method on it, and then negates the result.
In Operators§
See primary documentation in context for infix -.
multi infix:<->($a, $b --> Numeric:D)
Subtraction operator: Coerces both arguments to Numeric
and subtracts the second from the first. From version 6.d it works also on Duration
, DateTime
and Real
types.