addToInfinityCanDestroy

fun A_Number.addToInfinityCanDestroy(sign: AbstractNumberDescriptor.Sign, canDestroy: Boolean): A_Number

Add the receiver to the integral infinity with the given Sign, destroying one or the other if it's mutable and canDestroy is true. Because of the requirement that the argument be an integral infinity rather than an arbitrary A_Number, this is usually only used for double-dispatching.

Return

The sum, possibly recycling one of the inputs if canDestroy is true.

Parameters

sign

The sign of integral infinity to add to the receiver.

canDestroy

Whether a mutable receiver or argument may be destroyed and/or recycled to hold the sum.