import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/mapError";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/rightOrFail";
/**
 * Fails with the error `None` if value is `Left`.
 *
 * @tsplus getter ets/Stream right
 */

export function right(self, __tsplusTrace) {
  return tsplus_module_3.rightOrFail_(tsplus_module_2.mapError_(self, tsplus_module_1.some, __tsplusTrace), () => tsplus_module_1.none, __tsplusTrace);
}
//# sourceMappingURL=right.mjs.map