/** * Atomically performs transactional-effect for each binding present in map. * * @tsplus static effect/core/stm/TMap.Aspects forEach * @tsplus pipeable effect/core/stm/TMap forEach */ export function forEach(f: (kv: readonly [K, V]) => STM) { return (self: TMap): STM => self.foldSTM(undefined as void, (_, kv) => f(kv)) }