/** * Retrieves value associated with given key or default value, in case the key * isn't present. * * @tsplus static effect/core/stm/TMap.Aspects getOrElse * @tsplus pipeable effect/core/stm/TMap getOrElse */ export function getOrElse(k: K, onNone: LazyArg) { return (self: TMap): STM => self.get(k).map((_) => _.getOrElse(onNone)) }