/** * Returns a new effect where boolean value of this effect is negated. * * @tsplus getter effect/core/stm/STM negate */ export function negate(self: STM): STM { return self.map((b) => !b) }