/** * @tsplus static effect/core/io/Exit.Aspects exists * @tsplus pipeable effect/core/io/Exit exists */ export function exists(f: Predicate) { return (self: Exit): boolean => { switch (self._tag) { case "Failure": return false case "Success": return f(self.value) } } }