import { AbstractInteger } from './AbstractInteger'; import { VALUE, SPI } from './ops/symbols'; /** * Get the unary minus of the given integer. * * @param a */ export function unaryMinus>(a: I): I { const spi = a[SPI]; const aValue = a[VALUE]; const r = spi.unaryMinus(aValue); return spi.newInstance(r); }