/** * The moral equivalent of `if (!p) exp` * * @tsplus static effect/core/io/Effect.Aspects unless * @tsplus pipeable effect/core/io/Effect unless */ export function unless(predicate: LazyArg) { return (self: Effect): Effect> => Effect.suspendSucceed(predicate() ? Effect.none : self.asSome) }