import * as tsplus_module_1 from "@tsplus/stdlib/data/Either/definition";
import * as tsplus_module_2 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/collect";
/**
 * Filters any `Right` values.
 *
 * @tsplus fluent ets/Stream collectLeft
 */

export function collectLeft(self, __tsplusTrace) {
  return tsplus_module_3.collect_(self, either => tsplus_module_1.isLeft(either) ? tsplus_module_2.some(either.left) : tsplus_module_2.none, __tsplusTrace);
}
//# sourceMappingURL=collectLeft.mjs.map