/** * Returns a successful effect if the value is `Left`, or fails with a * `NoSuchElementException`. * * @tsplus getter effect/core/stm/STM leftOrFailException */ export function leftOrFailException(self: STM>) { return self.leftOrFail(() => new NoSuchElement()) }