/** * Atomically evaluate the conjunction of a transactional predicate across the * members of the array. * * @tsplus static effect/core/stm/TArray.Aspects forAllSTM * @tsplus pipeable effect/core/stm/TArray forAllSTM */ export function forAllSTM(f: (a: A) => STM) { return (self: TArray): STM => self.countSTM(f).map((n) => n === self.length) }