/** * Determine if the array contains a value satisfying a transactional * predicate. * * @tsplus static effect/core/stm/TArray.Aspects existsSTM * @tsplus pipeable effect/core/stm/TArray existsSTM */ export function existsSTM(f: (a: A) => STM) { return (self: TArray): STM => self.countSTM(f).map((n) => n > 0) }